Is it correct to use a QDockWidget on a QDialog? When I tried to use it, dock widget did not get docked on the dialog window. I could not resize the dock widget when I executed the application.
Asked
Active
Viewed 1,656 times
1 Answers
1
QDockWidgets
have to be 'owned' by a QMainWindow
, but you can of course put a QMainWindow
inside a QDialog
.

cmannett85
- 21,725
- 8
- 76
- 119
-
How can I put a mainwindow into a dialog? – fatma.ekici Apr 15 '13 at 12:22
-
@fatma.ekici The same way you would add any widget to a dialog - add it to the dialog's internal layout. – cmannett85 Apr 15 '13 at 12:28