Problem with stretching QGridLayout
-
Hello, I'm using PyQT6 and I want to create the following graphic (rough sketch):
I have figured out most things but how I can do the red part.
I want to have that area to stretch on the horizontal but not on the vertical. It should only take up as much space as it needs for the buttons and title to fit. If I scale the window and the buttons don't fit in the row anymore, they should go to the next row and the area should stretch with it.
Because of my previous projects using tkinter I'm used to the QGridLayout way of working and therefore wanted to use it here. Maybe it isn't the right choice. However what I need is that I can place a new button anywhere, not only in the "back". So for example I need to be able to say "this buttons should be on position 3"
If you could help me with that, I would be really glad. -
@Wugge said in Problem with stretching QGridLayout:
It should only take up as much space as it needs for the buttons and title to fit. If I scale the window and the buttons don't fit in the row anymore, they should go to the next row and the area should stretch with it.
like this?