QGridLayout row positioning
-
How can I place a row with buttons as high as possible at the top and take all the remaining space with a
QWidgetwith aQGridLayoutto display the opened image and the resulting image after defining the objects on it? So that the top row is always fixed at the top, regardless of the size of the window. I addedsetFixedHeightbut the row is still not at the top and can I somehow avoidsetFixedHeightfor adaptability?There was an idea to apply the
stretchproperty but I don't know how to add it to each row and will it work as I wanted?
This is the result on the open window:

Wanna such result without top spacing

