QDockWidget and QDialog
-
Can I use QDockWidget inside a QDialog? I seed that I can't move a QDockWidget if it is embedded in a QDialog. It works only in QMainWindow.
@mrdebug
Hi , Docks seems to want a CentralWidget to dock around so it wants QMainWindow.
However, I did managed to insert a QMainwindow into a other widget grid layout
so I could have Docks where I wanted.I assume you can do the same for Dialog if you create a new QMainwindow and give dialog as parent and
insert into a layout. Remember to call setCentralWidget so it has one.
I cant promise it works for Dialog also but if I can have QMainwindow in a QMainwindow, the odds are good :) -
I've tried but without a nice end.
Is QDockWidget officially supported by QDialog or not?
In other words is this a bug?@mrdebug
Hi, only QMainWindow is supported.
So if inserted QMainWindow into other widgets
and its does strange things. It most likely not a bug
but just not supported.
So when you inserted QMainWindow into Dialog , what was the issues /didnt work ?