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

Closable tabs for tabifyDockWidget



  • Hello all,

    I am facing issue trying to set closable tabs in QMainWindow tabified dock widgets.
    what I want is something similar to QTabWidget setTabClosable(...) but for tabified dock widgets.
    Is there a way to do that ? or any way to access the QTabWidget created by tabifyDockWidget(...) ?

    Thanks in advance !


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    1. AFAIK, no
    2. You would need to look at the code of QMainWindow to get the underlying QTabWidgets you'll be generating.

    You might also want to check KDAB's KDockWidgets.


Log in to reply