Reputation: 9542
I like the default handling/layout that adding a dock widget to the main window with addDockWidget() provides. Specifically the following:
I'd like to mimic this behavior, but on a QDialog since I can't just call addDockWidget(). I'm not really concerned about being able to drag the dock widget around and drop it on other corners, etc. I just want a QLayout setup that can do the above 3 things.
Upvotes: 1
Views: 670
Reputation: 5760
You can use a QMainWindow
instead of a QDialog
in order to get dockwidget functionality for a dialog. You should not notice any difference in performace between QMainWindow
and QDialog
.
Upvotes: 0