PDA

View Full Version : MainWindows



Maluko_Da_Tola
25th August 2010, 01:57
Hi,

Is it possible to use Layouts in MainWindows?

Cheers

Talei
25th August 2010, 02:40
If You mean QMainWindow class, then Yes. To be more precise You can use Layouts in most GUI classes.

Zlatomir
25th August 2010, 06:08
For QMainWindow (http://doc.qt.nokia.com/4.6/qmainwindow.html) you will need to create a container QWidget (witch will have layout and contains the rest of the widgets you want) and then use QMainWindow member function setCentralWidget() (http://doc.qt.nokia.com/4.6/qmainwindow.html#setCentralWidget) to add that widget in the "central" of your window