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 not expanding in QTabWidget
Forum Updated to NodeBB v4.3 + New Features

QGroupBox not expanding in QTabWidget

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 200 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.
  • C Offline
    C Offline
    castn
    wrote on last edited by
    #1

    Hi,
    I have a QTabWidget in which I add a tab and as the widget I add an QGroupBox. I now have the issue that the GroupBox is not extending fully in the tab. I tried to manully set the sizePolicy to expand horizontaly and stay fixed vertical. But this seemed to change nothing. What am I missing. Why is the QGroupbox not expanding in the layout, for which I used a vertical BoxLayout. In my GroupBox I used a GridLayout for the forms. I am quite new to Qt and I couldn't find out what I am missing. I guess its pretty simple and I just overlooked something.
    Below is a sceenshot of my current work.
    655480ff-0124-4e7f-b332-0a5cb1fa6fe2-grafik.png

    JoeCFDJ 1 Reply Last reply
    0
    • C castn

      Hi,
      I have a QTabWidget in which I add a tab and as the widget I add an QGroupBox. I now have the issue that the GroupBox is not extending fully in the tab. I tried to manully set the sizePolicy to expand horizontaly and stay fixed vertical. But this seemed to change nothing. What am I missing. Why is the QGroupbox not expanding in the layout, for which I used a vertical BoxLayout. In my GroupBox I used a GridLayout for the forms. I am quite new to Qt and I couldn't find out what I am missing. I guess its pretty simple and I just overlooked something.
      Below is a sceenshot of my current work.
      655480ff-0124-4e7f-b332-0a5cb1fa6fe2-grafik.png

      JoeCFDJ Offline
      JoeCFDJ Offline
      JoeCFD
      wrote on last edited by
      #2

      @castn better to show some code.
      And Qt version and OS?

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

        Hi and welcome to devnet,

        Which version of Qt are you using ?
        On which platform ?
        Can you provide a minimal compilable example that shows your issue ?

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

        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