[PyQt] widget show/hide bug
Benno Dielmann
lists at benno-dielmann.de
Mon Jun 16 19:34:33 BST 2008
Seems to be the Qt 4.3.0-4.3.3 bug Andreas mentions in his e-mail. I tested
the snipped and the widget ends up being shown. I have Qt 4.4.0 and PyQt
4.4.2.
Cheers, Benno.
On Monday 16 June 2008 Andreas Pakulat wrote:
| On 16.06.08 19:45:20, Detlev Offenbach wrote:
| > Hi,
| >
| > your code is missing a line (s. below).
| >
| > On Montag, 16. Juni 2008, Vsevolod Fedorov wrote:
| > > Hello!
| > >
| > > I have stumbled on problem that can be demonstrated by the following
| > > snippet:
| > > ----
| > > from PyQt4 import QtGui
| > > import sys
| > >
| > > app = QtGui.QApplication(sys.argv)
| >
| > app.connect(app, SIGNAL("lastWindowClosed()"), app, SLOT("quit()"))
|
| How should that make a difference to his problem? Besides that I can't
| reproduce this with C++ (currently no PyQt4 installation around) he
| doesn't close any windows. The code merely shows, hides and shows again
| before executing the event loop. A wild guess is that this might be
| triggered due to compression of hide/show events inside qt's event loop.
| Also there's a problem in at least Qt4.3.0-4.3.3 where events in the
| event queue sometimes get re-ordered (known and fixed meanwhile), so
| that might as well kick in here (though my C++ version worked with my
| Qt4.3.4).
|
| Andreas
More information about the PyQt
mailing list