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

Ravi_Kalepalli Ravi_Kalepalli at Satyam.com
Fri Feb 13 13:12:03 CET 2009


Hi Jesus,

Thank you for the reply. I am not clear about the container.
Can you please explain more or any example code will help?

Thank you,
Regards
Ravi K
________________________________
From: Jesús Fernández [mailto:jsfdez at gmail.com]
Sent: Friday, February 13, 2009 5:33 PM
To: Ravi_Kalepalli
Subject: Re: [Qt-interest] How to create a QWidget on another QWidget

You need to pass the container as widget parent.
On Fri, Feb 13, 2009 at 1:00 PM, Ravi_Kalepalli <Ravi_Kalepalli at satyam.com<mailto:Ravi_Kalepalli at satyam.com>> wrote:

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.

_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com<mailto:Qt-interest at trolltech.com>
http://lists.trolltech.com/mailman/listinfo/qt-interest


________________________________
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/3fbbf702/attachment.html 


More information about the Qt-interest-old mailing list