[PyQt] QLabel is visible but isVisible() is always false

Andreas Pakulat apaku at gmx.de
Mon Jul 16 20:32:54 BST 2007

On 16.07.07 19:35:55, Katja Wegner wrote:
> sorry, didn't know that.

Well, thats not really a working example (broken indentation and 2
self-errors). Anyway, the reson isVisible() returns false is simply that
the dialog is not visible. isVisible() is not purely influenced by the
flag you set via setVisible, its also telling you the real state of the
widget. And as you show() the method after printing the 3rd time the
visible state its not yet visible at the print. If you switch the show()
and the update(1) you'll see that the last print returns true.


You are only young once, but you can stay immature indefinitely.

More information about the PyQt mailing list