[PyQt] Position widgets over widgets
Mads Ipsen
madsipsen at gmail.com
Thu Apr 7 13:58:30 BST 2011
Hi,
I have attached a simple example where a widget sets up two labels. One
which is added to the layout of the widget, and one which is not.
In the paintEvent() of the parent widget I instead position the
non-layout label using setGeometry to make it appear in the center of
the parent widget.
However, the label positioned by this approach is always obscured by the
widget which was added to the layout. I want it to appear as visible,
i.e. visible on top of the parent widget.
Any clues?
Best regards,
Mads
-------------- next part --------------
A non-text attachment was scrubbed...
Name: infront.py
Type: text/x-python
Size: 933 bytes
Desc: not available
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20110407/f624d89f/attachment.py>
More information about the PyQt
mailing list