[Interest] Dockwidgets as non-children

Felix morack felixover at gmail.com
Fri May 15 13:18:41 CEST 2015


Can't you just do setParent(0) ? That used to work,  but a long time ago.

2015-05-14 19:25 GMT+02:00 John Weeks <john at wavemetrics.com>:

>
> > On 14 May 2015, at 8:43 am, Scott Aron Bloom <scott at towel42.com> wrote:
> >
> > I have a request from a customer, he loves our docked layout.. However,
> there are times when he wants to undock a window, and just make it a peer
> window.  Ie, not a child that is always on top of the mainwindow.
> >
> > Is there any way to do this directly in Qt?
> >
> > Scott
>
> The only way I know of is to create a new QWidget with no parent, and then
> re-parent the wrapped widget in the new QWidget. It will require an
> annoying amount of code to handle re-docking if that is desirable.
>
> -John Weeks
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20150515/06dc6778/attachment.html>


More information about the Interest mailing list