[Qt-interest] Maximize one MDI Window
Yuriy Rusinov
yrusinov at gmail.com
Mon Mar 28 22:18:41 CEST 2011
> You can't maximize one MDI subwindow and keep others in "normal" state. That's the way MDI works — all subwindows use the same "not-minimized" state.
Ok, what I have to do for use maximized state for active window only ?
>
> On Monday 28 March 2011 23:51:17 Yuriy Rusinov wrote:
>> Hello, colleagues !
>>
>> I have to maximize one subwindow in mdi area. I do
>> QMdiSubWindow * m_objEditorW = m_mdiArea->addSubWindow (objEditor);
>> m_objEditorW->setAttribute (Qt::WA_DeleteOnClose);
>> connect (objEditor, SIGNAL (closeEditor()), m_objEditorW, SLOT (close()) );
>> int id = <something>
>> if (id == 7)
>> {
>> objEditor->setWindowState (objEditor->windowState() |
>> Qt::WindowMaximized | Qt::WindowActive);
>> m_objEditorW->setWindowState (m_objEditorW->windowState() |
>> Qt::WindowMaximized | Qt::WindowActive);
>> }
>> objEditor->show();
>> required window is showed maximized, but other subwindows are shown
>> maximized too. Where is my error ? What I have to do for correction
>> this ?
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
>
>
--
Best regards,
Sincerely yours,
Yuriy Rusinov.
More information about the Qt-interest-old
mailing list