Hello,
I have a QMainWindow with several docked QDockWidgets and a QTabWidget as the central widget of the QMainWindow. The docking/undocking and re-arranging of the dockable widgets works without a problem.
I want to add functionality to drag and drop a QDockWidget to the QTabWidget, adding the QDockWidget as a new tab to the QTabWidget and removing the source QDockWidget.
The QMainWindow/QDockWidget drag and drop implementation seems to different from the default drag and drop implementation described in http://qt-project.org/doc/qt-4.8/dnd.html [qt-project.org].
I am able to drag and drop a QDockWidget to the QTabWidget using QDrag->exec() etc., but the QMainWindow/QDockWidget docking is not functional during QDrag->exec().
What are my options to implement the desired drag and drop behavior?
↧