PDA

View Full Version : Maximizing a floating QDockWidget?



blackmarlin
20th December 2012, 10:49
Hi,

Is it possible to make a QDockWidget that has a working 'maximize' icon in its title bar whenever it is floating? I've tried using setWindowFlags(Qt::WindowMaximizeButtonHint) in the constructor of a class derived from QDockWidget, but that does not seem to have any effect.

Regards

phoeblyles
22nd December 2012, 10:25
Hi,

Is it possible to make a QDockWidget that has a working 'maximize' icon in its title bar whenever it is floating? I've tried using setWindowFlags(Qt::WindowMaximizeButtonHint) in the constructor of a class derived from QDockWidget, but that does not seem to have any effect.

Regards

No, I don't think that possible to make a QDockWidget that has a working 'maximize' icon in its title bar whenever it is floating. At least using setWindowFlags is not possible. Well you should try something more.