[PyQt] widget show/hide bug

Detlev Offenbach detlev at die-offenbachs.de
Mon Jun 16 18:45:20 BST 2008


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()"))

> w = QtGui.QWidget()
> w.show()
> w.hide()
> w.show()
> app.exec_()
> ----
> After its execution widget stays hidden and application keeps running
> (without any visible windows).
> Actual code that suffers from it is naturally much more complicated, but
> workarounds are harsh and do not always work.
>
> Qt version 4.3.4, pyqt version 4.3.3.
>
> Seva
>
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt



-- 
Detlev Offenbach
detlev at die-offenbachs.de


More information about the PyQt mailing list