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

Rui Maciel rui.maciel at gmail.com
Fri Jul 20 11:12:42 CEST 2012


Is it possible to add a given QDockWidget object to a QMainWindow as a 
floater?  According to the documentation for the QMainWindow class, the 
QMainWindow::addDockWidget() member functions use Qt::DockWidgetAreas 
flags to specify where to add a given dock widget, but there isn't a 
flag for the floater case and when I pass the remaining options, 
Qt::AllDockWidgetAreas or Qt::NoDockWidgetArea, the dock window appears 
all screwed up.

So, is it possible to add a dock widget to a QMainWindow object as a 
floater?  If it is, what does it take to get it done?


Thanks in advance,
Rui Maciel



More information about the Interest mailing list