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 <j...@wavemetrics.com>:

>
> > On 14 May 2015, at 8:43 am, Scott Aron Bloom <sc...@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@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to