[Qt-interest] How to get a widget's ownership and show it inanother widget?
Scott Aron Bloom
Scott.Bloom at sabgroup.com
Mon Jun 8 06:34:16 CEST 2009
Just create a new QWidget derived class, create a layout that you need,
and a setCentralWidget method that adds it to the layout for you..
Scott
-----Original Message-----
From: qt-interest-bounces at trolltech.com
[mailto:qt-interest-bounces at trolltech.com] On Behalf Of Kermit Mei
Sent: Sunday, June 07, 2009 8:26 PM
To: qt-interest at trolltech.com
Subject: [Qt-interest] How to get a widget's ownership and show it
inanother widget?
Hello, I want to implement a MainWindow Widget which is inherited from
QWidget. And I need a mothed MainWindow::setCentralWidget(QWidget
*widget) which works like QMainWindow::setCentralWidget(...) do.
I can't us QMainWindow's method, because I need some more adjust.And I
can not use QStackWidget, too.
Can anyone help me tell me how to do it?
BTW: How can I hide a QMainWindow's Title bar?
Thanks!
Kermit
_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest
More information about the Qt-interest-old
mailing list