[Qt-interest] docking controls on other widgets than QMainWindow

Bruno Seabra Lima bslima at telemidia.puc-rio.br
Wed Mar 24 18:22:26 CET 2010


Very interesting.
Im gonna run some tests.
Thanks :)


On Wed, Mar 24, 2010 at 1:40 PM, Denis Akhmetzyanov
<dakhmetzyanov at smartlabs.tv> wrote:
> Hi,
> You are right. QMdiArea::addSubWindow() really creates QMdiSubWindow and
> return pointer to it. We could wrap any child of QWidget into QMdiSubWindow.
> Wrapping of the QMainWindow doesn't seem to me a good decision, but it is
> possible. And it works, I taked screenshot from working application.
>
>
> 2010/3/24 BRM <bm_witness at yahoo.com>
>>
>> Correct me if I'm wrong, but I believe QMdiArea::addSubWindow() creates an
>> instance of the QMdiSubWindow widget that then wraps the QWidget it is
>> passed.
>> Thus, it's not as direct as it seems.
>>
>> Ben
>>
>> From: Denis Akhmetzyanov <dakhmetzyanov at smartlabs.tv>
>> To: Bruno Seabra Lima <bslima at telemidia.puc-rio.br>
>> Cc: Qt-interest <qt-interest at trolltech.com>
>> Sent: Wed, March 24, 2010 5:57:32 AM
>> Subject: Re: [Qt-interest] docking controls on other widgets than
>> QMainWindow
>>
>> Hi,
>> It is possible because QMdiArea::addSubWindow() takes pointer to QWidget.
>> And QMainWindow inherits QWidget.
>> Example in the attached file :-)
>>
>> 2010/3/24 Bruno Seabra Lima <bslima at telemidia.puc-rio.br>
>>>
>>> Just one question on that topic.
>>> If am i using a MDIArea.
>>> Is it possible that the subwindows are instances of QMainWindow ?
>>>
>>>
>>> On Tue, Mar 23, 2010 at 3:12 AM, J-P Nurmi <jpnurmi at gmail.com> wrote:
>>> > On Tue, Mar 23, 2010 at 8:02 AM, cb <cb at noaddr.com> wrote:
>>> >> Is it possible to dock controls on something other than a QMainWindow?
>>> >>
>>> >> Thanks
>>> >>
>>> >
>>> > What's wrong with QMainWindow? It is not limited to one instance or
>>> > anything like that. You can even make it a child widget if you want.
>>> >
>>> > --
>>> > J-P Nurmi
>>> > _______________________________________________
>>> > Qt-interest mailing list
>>> > Qt-interest at trolltech.com
>>> > http://lists.trolltech.com/mailman/listinfo/qt-interest
>>> >
>>>
>>>
>>>
>>> --
>>> Bruno Seabra Mendonça Lima
>>> --------------
>>> Bacharel em Ciência da Computação - UFMA
>>> Mestrando da PUC-Rio
>>> Pesquisador Laboratório Telemidia (PUC-Rio)
>>> -------------
>>> www.bslima.com
>>>
>>> _______________________________________________
>>> Qt-interest mailing list
>>> Qt-interest at trolltech.com
>>> http://lists.trolltech.com/mailman/listinfo/qt-interest
>>
>>
>> _______________________________________________
>> Qt-interest mailing list
>> Qt-interest at trolltech.com
>> http://lists.trolltech.com/mailman/listinfo/qt-interest
>>
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>



-- 
Bruno Seabra Mendonça Lima
--------------
Bacharel em Ciência da Computação - UFMA
Mestrando da PUC-Rio
Pesquisador Laboratório Telemidia (PUC-Rio)
-------------
www.bslima.com




More information about the Qt-interest-old mailing list