[Qt-interest] How to create a QWidget on another QWidget

Ravi_Kalepalli Ravi_Kalepalli at Satyam.com
Fri Feb 13 13:00:19 CET 2009


Hi

I wanted to display the QWidget (parent) and again on it another QWidget(child).
Like this

            iWindow = new QWidget(this);
            iWindow->show();
            iWindow->setFixedSize(240,320);
            QPalette pal0(Qt::yellow);
            this->setPalette(pal0);

            iWindowChild = new QWidget(this);
            iWindowChild->setFixedSize(50,50);
            iWindowChild->show();
            QPalette pal(Qt::red);
            iWindowChild->setPalette(pal);

Can anyone please help me on this issue, whether this really possible or not?

Regards
Ravi K

________________________________
DISCLAIMER:
This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090213/3433e17c/attachment.html 


More information about the Qt-interest-old mailing list