[Qt-interest] How to create a QWidget on another QWidget
Efan...
efanharris at gmail.com
Fri Feb 13 18:53:58 CET 2009
You can use QSplitter also to have two views or QDockWidget too
On Fri, Feb 13, 2009 at 4:23 AM, Ravi_Kalepalli
<Ravi_Kalepalli at satyam.com>wrote:
> Hi Jesus,
>
>
>
> I need MDI window, I think … My intention is I want to divide the excisting
> view to 2 halfs.
>
> 1st half and 2nd half to display two different pictures.
>
>
>
> Thank you,
>
> Regards
>
> Ravi K
> ------------------------------
>
> *From:* Jesús Fernández [mailto:jsfdez at gmail.com]
> *Sent:* Friday, February 13, 2009 5:44 PM
> *To:* Ravi_Kalepalli
> *Subject:* Re: [Qt-interest] How to create a QWidget on another QWidget
>
>
>
> Do you want a MDI window or only a Widget inside other widget?
>
> On Fri, Feb 13, 2009 at 1:12 PM, Ravi_Kalepalli <Ravi_Kalepalli at satyam.com>
> wrote:
>
> 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>
> 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
> 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.
>
>
> _______________________________________________
> Qt-interest mailing list
> 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.
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090213/7beea4c2/attachment.html
More information about the Qt-interest-old
mailing list