I'm new to QT, especially QT Designer and I found it to be quite unintuitive.
I have the following layout which I'm trying to achieve in Qt Designer.
Explication:
Layouts:
BUT if I will apply of those which I said above, I'm going to get something like this:
So far as I've search I can use the Lay Out Horizontally in Splitter and Lay Out Horizontally Vertically in Splitter to keep the aspect ratio that I want, but then I can split the app and I don't want that. Can anyone help me to understand how can I do this? Or the only way of doing this would be from C++?
I think what you are looking for is QGridLayout.
In a QGridLayout you can decide for each widget how many rows it will occupy (just drag its borders) and the various "weigths" (parameter is called rowStretch or columnStretch) of each row/column.
Example: Your layout may be composed as follows:
A big yellow rectangle is the first QGridLayout (1 row x 5 columns), wich contains (left to right):
The green QGridLayouts (2 rows x 2 columns) are configured this way:
This way red and white elements are proportioned 2 to 1 vertically and (since togheter they occupy the same row of the blue ones) the blue height is the sum of red + white.