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

Denis Akhmetzyanov dakhmetzyanov at smartlabs.tv
Wed Mar 24 10:57:32 CET 2010


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/fe6a6490/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Multi-MDI.png
Type: image/png
Size: 47458 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100324/fe6a6490/attachment.png 


More information about the Qt-interest-old mailing list