[Qt-interest] Something strange, I custom widget inherit Qwidget x, y, w, h are all zero , and setGeometry doesn's work ?
Qzi
hotseason007 at gmail.com
Sun Aug 29 20:02:41 CEST 2010
I have done the following:
setCentralWidget(mdiArea);
--------------------
mdiArea->addSubWindow(child);
mdiArea->cascadeSubWindows();
That's all ! and ?
On Mon, Aug 30, 2010 at 1:19 AM, <alessandro.portale at nokia.com> wrote:
> Hi,
>
> did you set Your widget as central widget of the mainwindow? That should
> also lay Your widget out, so that it fills the mainwindow.
> See:
> http://doc.qt.nokia.com/latest/qmainwindow.html#setCentralWidget
>
> Alessandro
> ________________________________________
> From: qt-interest-bounces at trolltech.com [qt-interest-bounces at trolltech.com]
> On Behalf Of ext Qzi [hotseason007 at gmail.com]
> Sent: Sunday, August 29, 2010 11:29
> Hi all
> Something strange, I custom widget inherit Qwidget x,y,w,h are all
> zero , and setGeometry doesn's work ?
> My custom widget is in mainwindow .
>
>
>
--
作智慧的减法 ...
体会生活的微妙的富足 ...
嗯 ...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100830/ced86c91/attachment.html
More information about the Qt-interest-old
mailing list