How to combine fixed widgets with flexible layouts?
-
Hi! I am new to C++ GUI from QML, I am implementing sth like this:
Some layouts 1 & 2 are flexible layouts while Button 1 & 2 are fixed both in sizes and positions. Button 3 & 4 are fixed in HORIZONTAL Positions(They always align to the right of the main widget), they are with fixed sizes, and they align with Some layouts 1 & 2 VERTICALLY.
Could some one provide me with a general solution? I can look into details myself. Thank you very much -
Hi! I am new to C++ GUI from QML, I am implementing sth like this:
Some layouts 1 & 2 are flexible layouts while Button 1 & 2 are fixed both in sizes and positions. Button 3 & 4 are fixed in HORIZONTAL Positions(They always align to the right of the main widget), they are with fixed sizes, and they align with Some layouts 1 & 2 VERTICALLY.
Could some one provide me with a general solution? I can look into details myself. Thank you very much -
Basically, it's a vertical layout with horizontal layouts in it.
You may add/remove vertical spacers to the flexible zones you want.@mpergand Thank you very much, looks like many people tend to use .ui to design GUI and include .ui file into the project. It's easy to use, but it seems our project doesn't allow to use .ui file, we use only C++(I don't know why...).
Can I refer to the .ui file to "translate" it to C++ codes? I am sorry I was a QML programmer, I know little about C++ GUI