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. [SOLVED] How to move QGroupBox tittle to bottom side?
QtWS25 Last Chance

[SOLVED] How to move QGroupBox tittle to bottom side?

Scheduled Pinned Locked Moved General and Desktop
qtwidgetsqgroupboxqstyle
3 Posts 2 Posters 1.9k Views
  • 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.
  • V Offline
    V Offline
    Vitek
    wrote on 17 Jul 2015, 06:20 last edited by Vitek
    #1

    how to move QGroupBox tittle to bottom side?
    alt text

    1 Reply Last reply
    0
    • C Offline
      C Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on 17 Jul 2015, 06:31 last edited by
      #2

      Hi, welcome to devnet.

      You can do that with stylesheets, e.g.

      setStyleSheet("QGroupBox::title { subcontrol-position: bottom left; }");
      

      Then you can adjust the position exactly using left, bottom and padding.

      But think hard if you really want to do that. It's like a book title placed on the back cover.

      1 Reply Last reply
      1
      • V Offline
        V Offline
        Vitek
        wrote on 17 Jul 2015, 08:20 last edited by
        #3

        Hi, and thank you.

        For improve appearance might to add it

        "QGroupBox {margin-bottom: 3px;}"
        "QGroupBox::title { subcontrol-position: bottom; "
        " top: 3px; }"
        
        1 Reply Last reply
        0

        2/3

        17 Jul 2015, 06:31

        • Login

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