Solved how to make a floating dockwidget unfloating in mdiwindow
-
In Mdi window, when a dockwidget is in floating mode, I want to make it unfloating by clicking a pushbutton.
I tried the function dockwidget->setFloating(false), but it doesnt work. however it works if the dockwidget is in mainwindow
so is there any difference when using dockwidget in mdi window? -
I think I know, I should use QMainwindow instead of QWidget
-
I think I know, I should use QMainwindow instead of QWidget
-
Hi
Yes QWidget does not support docking. only QMainwindow does.