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

How to keep border around QTabWidget with tabBarAutoHide enabled



  • Does anyone know how to keep the border around QTabidget when the tab bar is hidden? The QTabWidget is the central widget in a QMainWindow and without the border it looks like the rects are not aligned:

    With tabBar visible:
    556091a8-d1c6-4627-8da5-5104aafdd69f-image.png

    With tabBar hidden:
    9aa6dbfe-32b6-424a-aa91-057893efb74a-image.png