[Interest] QMainWindow: add a dock widget as a floater?

Rui Maciel rui.maciel at gmail.com
Fri Jul 20 11:52:47 CEST 2012


On 07/20/2012 10:31 AM, Samuel Gaist wrote:
> Hi,
>
> As silly as it might sound, why don't you just not add the
> QDockWidget ? By default at construction time, the QDockWidget is a
> floater. If you want it to be a QMainWindow children, just make the
> QMainWindow it's parent.

I've tried that, but that ends up screwing up how the dock widget is 
rendered. The dock widget is rendered properly when added through 
addDockWidget(), though.


Rui Maciel



More information about the Interest mailing list