Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. SetTitlebarWidget & its height
Forum Updated to NodeBB v4.3 + New Features

SetTitlebarWidget & its height

Scheduled Pinned Locked Moved Unsolved General and Desktop
qwidget
3 Posts 2 Posters 635 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Dariusz
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      You should show your widget implementation.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      D 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        You should show your widget implementation.

        D Offline
        D Offline
        Dariusz
        wrote on last edited by
        #3

        @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.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved