[Qt-interest] docking controls on other widgets than QMainWindow
BRM
bm_witness at yahoo.com
Wed Mar 24 17:03:12 CET 2010
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
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100324/9b54b37a/attachment.html
More information about the Qt-interest-old
mailing list