PDA

View Full Version : QMDI - custom layout of QMdiSubWindows



aado123
23rd February 2010, 09:25
Hello all,

I am using Qt 4 for X11 and I have an application that has a QMdiArea widget that maintains a list of QMdiSubWindows widgets. It can tile those, cascade those. BUT I want a custom layout of them like setting geometry, putting the windows where I want , saving/restoring positions etc.

I do not want to use QWorksSpace because it says it is an OBSOLETE class in the documentation.

Is any way to extend this functionality for QMdiArea class?

Any help/suggestions will be appreciated

Sincerely,
Adonis Nechita

BalaQT
23rd February 2010, 10:41
BUT I want a custom layout of them like setting geometry, putting the windows where I want , saving/restoring positions etc.

Same like other windows.
subwindow->setFixedSize(SWID,SHGT); //size
subwindow->move(QPoint(x,y)); //geometry

hope it helps
Bala