QGroupBox not expanding in QTabWidget
-
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.
-
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.
-
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 ?