QT Widget Tab Does Not Expand
-
wrote on 14 Aug 2023, 14:08 last edited by Radio1985
Hi All,
I have desktop design which looks like below.
The object layout is shown below.
The issue occurs when I maximize the application. Then my widgets in the Tab does not expand. Please see the image below.
As you can see above, the tab did not maximize. Any idea what I am doing wrong here?
Thanks!
-
Hi All,
I have desktop design which looks like below.
The object layout is shown below.
The issue occurs when I maximize the application. Then my widgets in the Tab does not expand. Please see the image below.
As you can see above, the tab did not maximize. Any idea what I am doing wrong here?
Thanks!
wrote on 14 Aug 2023, 14:40 last edited by@Radio1985
I think you have to put tabWidget in a layout as well. -
@Radio1985
I think you have to put tabWidget in a layout as well. -
@Radio1985 hi,
You have two options:
- add a layout to your "frame" and put your QTabWidget in it
remove "frame" altogether as it does not seem to serve a purpose beside containing your QTabWidget (unless there's an esthetic side that I missed in which case, use the option above).
-
@Radio1985 hi,
You have two options:
- add a layout to your "frame" and put your QTabWidget in it
remove "frame" altogether as it does not seem to serve a purpose beside containing your QTabWidget (unless there's an esthetic side that I missed in which case, use the option above).
wrote on 14 Aug 2023, 17:46 last edited by mpergand@Radio1985
Despite what @SGaist said,
your structure is wrong, the left menu should be outside the tab widget (or stack widget I think). -
@Radio1985
Despite what @SGaist said,
your structure is wrong, the left menu should be outside the tab widget (or stack widget I think).@mpergand you're correct, I was focused on the layout issue and missed that. Thanks !
-
@Radio1985
I think you have to put tabWidget in a layout as well.
1/7