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?

    TIA


  • Lifetime Qt Champion

    Hi,

    You should show your widget implementation.



  • @SGaist said in SetTitlebarWidget & its height:

    Hi,

    You should show your widget implementation.

    Its something like

        fo = QDockWidget()
        fo.show()
        w = QPushButton("yoyoyooy")
        w.setMaximumHeight(10)
        fo.setTitleBarWidget(w)
    
    

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


Log in to reply