Qt-interest Archive, January 2008
Suggestion options in QMdiSubWindow
Message 1 in thread
Hi Trolls,
I have a suggestion to make the developers who would like to share with the community. The class / QMdiSubWindow window is completely independent of the window and daughter believe that would be an interesting option for the QMdiSubWindow inherit the properties of resizing. Or it exists and has not find it?
Thanks,
Marcelo Estanislau
Brazil - RS
_________________________________________________________________
Conheça o Windows Live Spaces, a rede de relacionamentos do Messenger!
http://www.amigosdomessenger.com.br/
--
[ signature omitted ]
Message 2 in thread
Hi Marcelo,
> I have a suggestion to make the developers who would like to share with the community. The class / QMdiSubWindow window is completely independent of the window and daughter believe that would be an interesting option for the QMdiSubWindow inherit the properties of resizing. Or it exists and has not find it?
More precisely, what are you looking for / trying to achieve?
--
[ signature omitted ]
Message 3 in thread
Thanks for replying,
My problem has been posted on http://www.qtcentre.org/forum/f-qt-programming-2/t-qmdisubwindow-problem-with-resized-window-11135.html, if you can see I would much. I almost "booting my hair" in a practical way to solve the problem of resizing of QMdiSubWindow window, I tried to look in the archives and did not find anything.
Thanks,
Marcelo Estanislau
----------------------------------------
> From: bnilsen@xxxxxxxxxxxxx
> Subject: Re: Suggestion options in QMdiSubWindow
> Date: Mon, 7 Jan 2008 17:42:15 +0100
> To: qt-interest@xxxxxxxxxxxxx
>
> Hi Marcelo,
>
>> I have a suggestion to make the developers who would like to share with the community. The class / QMdiSubWindow window is completely independent of the window and daughter believe that would be an interesting option for the QMdiSubWindow inherit the properties of resizing. Or it exists and has not find it?
>
> More precisely, what are you looking for / trying to achieve?
>
> --
> Bjoern Erik Nilsen - bnilsen at trolltech.com
> Trolltech ASA - Sandakervn. 116, P.O. Box 4332 Nydalen, 0402 Oslo, Norway
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
_________________________________________________________________
Veja mapas e encontre as melhores rotas para fugir do trânsito com o Live Search Maps!
http://www.livemaps.com.br/index.aspx?tr=true
--
[ signature omitted ]
Message 4 in thread
Marcelo Estanislau Geyer wrote:
> Thanks for replying,
>
> My problem has been posted on http://www.qtcentre.org/forum/f-qt-programming-2/t-qmdisubwindow-problem-with-resized-window-11135.html, if you can see I would much. I almost "booting my hair" in a practical way to solve the problem of resizing of QMdiSubWindow window, I tried to look in the archives and did not find anything.
OK, the solution to this problem is to remove the maximize button hint
from QMdiSubWindow::windowFlags:
...
mdiArea->addSubWindow(mdiSubWin);
mdiSubWin->setWindowFlags(mdiSubWin->windowFlags() &
~Qt::WindowMaximizeButtonHint);
...
Note the you can specify which window flags you want as a second
parameter to QMdiArea::addSubWindow. E.g:
mdiArea->addSubWindow(mdiSubWin, Qt::WindowSystemMenuHint |
Qt::WindowTitleHint | Qt::WindowMinimizeButtonHint);
Hope this helps.
--
[ signature omitted ]
Message 5 in thread
Fine, but you think it would be interesting to have a choice in class QMdiSubWindow to inherit the controls of the window daughter? Do not understand this as a criticism, but a suggestion to improve the tool QT. Anyway, as I am working with templates, I will have to do a check on children to see which situation applied, but it would be a good take it now would be encapsulated.
Thanks for you help.
Marcelo Estanislau.
>> My problem has been posted on http://www.qtcentre.org/forum/f-qt-programming-2/t-qmdisubwindow-problem-with-resized-window-11135.html, if you can see I would much. I almost "booting my hair" in a practical way to solve the problem of resizing of QMdiSubWindow window, I tried to look in the archives and did not find anything.
>
> OK, the solution to this problem is to remove the maximize button hint
> from QMdiSubWindow::windowFlags:
>
> ...
> mdiArea->addSubWindow(mdiSubWin);
> mdiSubWin->setWindowFlags(mdiSubWin->windowFlags() &
> ~Qt::WindowMaximizeButtonHint);
> ...
>
> Note the you can specify which window flags you want as a second
> parameter to QMdiArea::addSubWindow. E.g:
>
> mdiArea->addSubWindow(mdiSubWin, Qt::WindowSystemMenuHint |
> Qt::WindowTitleHint | Qt::WindowMinimizeButtonHint);
>
>
> Hope this helps.
>
> --
> Bjoern Erik Nilsen - bnilsen at trolltech.com
> Trolltech ASA - Sandakervn. 116, P.O. Box 4332 Nydalen, 0402 Oslo, Norway
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
_________________________________________________________________
Receba GRÁTIS as mensagens do Messenger no seu celular quando você estiver offline. Conheça o MSN Mobile!
http://mobile.live.com/signup/signup2.aspx?lc=pt-br
--
[ signature omitted ]