[Qt-interest] How to make a QDockWidget behave more like a toplevel widget

David Boosalis david.boosalis at gmail.com
Fri Aug 27 17:34:19 CEST 2010


Hi Bo.

Yes I tried that hint, it did nothing.  While the dock widget is floating if
you click on any other window on your desktop that is  not its parent widget
the dock widget disappears. If you then click on the parent widget it
reappears.  Have not tried it in 4.7 prerelease.  Can anyone comment as to
whether this behaviour is a bug or a feature ?

Thanks for the suggestion any way.



On Thu, Aug 26, 2010 at 11:18 PM, Bo Thorsen <bo at fioniasoftware.dk> wrote:

> Hi David,
>
> Den 26-08-2010 18:24, David Boosalis skrev:
> > Sorry for the resend, I edited out the "not" in my second issue below
> >
> > On Thu, Aug 26, 2010 at 9:22 AM, David Boosalis
> > <david.boosalis at gmail.com <mailto:david.boosalis at gmail.com>> wrote:
> >
> >     When I drag a dock widget from its main window and place it on the
> >     screen and then click on another widget the doc window will
> >     disappear.  I'd like to cancel this behaviour.  Is there a flag I
> >     can set for this.
>
> Have you tried setting the Qt::WindowStaysOnTopHint window flag on the
> dock widget?
>
> >     Also in my main window I  (edited  not out) want my dock widgets to
> >     be tabbed only, but sometimes on startup I get nested dock widgets.
> >     Even though I explicitly set
> >     QMainWindow::setDockOptions(QMainWindow::ForceTabbedDocks).  Anyone
> >     else seen this behavior ? Is it a bug ?
>
> Sounds like it :( I hope you can find the time to make a small self
> contained example application and enter a bug report.
>
> Bo Thorsen,
> Fionia Software.
>
> --
>
> Expert Qt and C++ developer for hire
> Contact me if you need expert Qt help
> http://www.fioniasoftware.dk
> _______________________________________________
> 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/20100827/34227580/attachment.html 


More information about the Qt-interest-old mailing list