Idea: stop bond perceiving using timer

On Oct 28, 2010, at 3:32 PM, Xaver Wurzenberger wrote:

Hi Xaver,
Please look more carefully into
http://developer.qt.nokia.com/faq/answer/how_can_i_add_widgets_to_my_qfiled
ialog_instance
you will see that C++ code in first link does not inherit QFileDialog (like
yours), but only interacts with public methods of it
(QFileDialog::layout() in this case). I suppose it will work in Python

Hi Konstantin,
as I indicated there are many ways I tested, public methods were of course my
first try. I believe this to be a complete “translation” of your page - which
is not working:

I’m not completely sure about line 9, though.
I know there’s probably no PyQt experts here, but if someone (Geoff if he’ll
implement it) could test this way in c++ and assure me it works, that would be
a start.

This sounds reasonable, I know last time I looked I didn’t have much luck without having to derive and give up the native dialog (in C++). Things may have changed as it has been a while.

P.S. you should not expect inheritance of Python classes from C++ ones to
be fully functional If you need customization you may need to inherit in
C++, than use in Python

What makes you say that? PyQt is a fully operational Qt API. Why should there
be classes that can be inherited (I subclass QMainWindow and QWidget all the
time) and classes which can’t?

I am guessing he just hasn’t used PyQt much - I have certainly used PyQt in this way too. There are some limitations in places though, and none of us are PyQt experts in here. I would consider myself an occasional user of PyQt, among other Python based Qt APIs.

Marcus