Important: Please read the Qt Code of Conduct -

SetTitlebarWidget & its height

  • Hey

    I've created my own Title bar widget and would like to set its height to something like 10 pixels. Even tho I can do setFixedHeight() and the widget is that size, when it shows on windows it has a "black/transparent border" around top/bottom of the title bar area. Meaning title bar is still of its original size... Tried on QDockWidgets so far...

    How can I change title bar size to match by widget height?


  • Lifetime Qt Champion


    You should show your widget implementation.

  • @SGaist said in SetTitlebarWidget & its height:


    You should show your widget implementation.

    Its something like

        fo = QDockWidget()
        w = QPushButton("yoyoyooy")

    The PushButton is x pixels below top of window, so the title bar is still xx height.

Log in to reply