Unsolved way to get cell's size of QGridLayout
-
I know there is a method CellRect for QGridLayout.
but It returns the item's size in specific Cell.QT Designer program seems to be solved this problem.
Is there any way to get exact cell size of QGridLayout? -
@superl3 said in way to get cell's size of QGridLayout:
QT Designer program seems to be solved this problem.
Why do you think so?
The size depends on the widgets in the cells. So ask the widgets.
-
I know the size of the widget with CellRect or QLayoutItem's Geometry, but I cannot get the grid size.
did you mean that there is a answer in widget? if there is, can you tell me the way to get the grid size rathar than the widget size
-
-
I want to know that the geometry surrounded by red and green lines which includes widget.
Get geometry of QLayoutItem still gives me the size of widget.. -
I currently don't see a direct way to get them and I also don't understand why they are needed at all.
-
because I want to mimic QT designer's behavior.. okay
-
Maybe take a look into the designer sources will help you.