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. QGroupBox does not auto resize when I put QHBoxLayout inside
Forum Update on Monday, May 27th 2025

QGroupBox does not auto resize when I put QHBoxLayout inside

Scheduled Pinned Locked Moved General and Desktop
c++linuxqgroupboxqhboxlayout
3 Posts 2 Posters 1.4k 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.
  • M Offline
    M Offline
    marlenet15
    wrote on 6 Oct 2015, 18:47 last edited by marlenet15 10 Jun 2015, 18:56
    #1

    In the ui, I am trying to put QHBoxLayout inside QGroupBox. QHBoxLayout contains two labels. However QGroupBox stays in a fixed size instead of autoresizing. Are there any settings I should be aware of?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 6 Oct 2015, 21:38 last edited by
      #2

      Hi,

      Can you share the code where you setup QGroupBoxes ?

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

      M 1 Reply Last reply 6 Oct 2015, 21:48
      0
      • S SGaist
        6 Oct 2015, 21:38

        Hi,

        Can you share the code where you setup QGroupBoxes ?

        M Offline
        M Offline
        marlenet15
        wrote on 6 Oct 2015, 21:48 last edited by
        #3

        @SGaist I am just using the .ui (Qt Designer).

        1 Reply Last reply
        0

        1/3

        6 Oct 2015, 18:47

        • Login

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