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

Bo Thorsen bo at fioniasoftware.dk
Sat Aug 28 13:12:47 CEST 2010


Den 27-08-2010 17:34, David Boosalis skrev:
> 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 ?

The approach I would take at this point is to figure out why it's 
closing. You can usually do this by setting breakpoints in closeEvent() 
or the destructor (it it auto deletes on close), or sometimes by 
overriding event and look for the right type.

Right now, you see the symptom (closing the window), but you don't know 
why. Figure this out, and either the solution will be obvious, or post a 
new question here.

> Thanks for the suggestion any way.

Well, I'm sorry it didn't work :-)

Bo Thorsen,
Fionia Software.

-- 

Expert Qt and C++ developer for hire
Contact me if you need expert Qt help
http://www.fioniasoftware.dk



More information about the Qt-interest-old mailing list