[Interest] Issue painting over child widgets

Murphy, Sean M. sean.murphy at gd-ais.com
Thu Nov 17 22:34:40 CET 2011


Answering my own question:

>>Create the overlay widget as an independent child of the top level
>>widget (not the widgets layout).
>
>My original layout was done in Designer, but I assume I can't do this
>step in Designer, I must do it in my MainWindow's constructor?
>
>>Raise it to the top of the stack.
>
>This step seems to be my sticking point.  How do I manipulate the order
>of the QObject/QWidget stack?  The only semi-relevant function I see is
>QObject::children(), but that returns a const QObjectList&, so I don't
>see how I can manipulate it...

So in my MainWindow constructor, I just added a QLabel as a child of centralWidget(), and this appears to put it on top of all the other widgets, so I think I've got the behavior I'm looking for...

Thanks for all the assistance!
Sean



More information about the Interest mailing list