Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QDockwidget - allow only tabbed docking



  • Hi,

    I have created one mainwindow and inside it there are multiple dockwidgets.

    We have stacked widget with below code.
    mainwindow->tabifyDockWidget(m_dock, m_dock_1);

    How to instruct mainwindow so that if any floated dockwidget again drop to mainwindow then it is forcefully adjust with stacked tab ? I mean how to instruct mainwindow so that it only accept drop with stacked tab only - docking area only stacked tab ?


  • Lifetime Qt Champion

    Hi,

    AFAIK, you can limit the docking area in with a dock widget can be docked. However (I may be wrong though) there's no ready made solution to force a specific stack.


Log in to reply