Hi,
I'm trying to get two QWidget derived classes that need to mantain a "forced" aspect ratio.
The first widget class must be "square" as I need to display a circle inside it.
The second widget will contain a set of this first widget class with some rows and some columns.
On the attached image you can see what I want to achieve.Image001.jpg
The first widget class is the widget that displays a green circle with a text inside. The second widget is the "container" widget that includes the set of this first class widget into rows and columns. There is also a widget that the only thing that it do is to get space and so I can get "displacement" as I need the fist class widgets to be disposed in the way that you can see on the attached image.
Can someone point me on how to achieve this?
What I have tryied is to create a QGridLayout derived class that reimplements "hasHeightForWidth" and "heightForWidth" with no luck.
Thanks,
Bookmarks