Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QGridLayout cell height
pixbyte last edited by
My UI has some QGridLayouts. Two of them contain 3 Rows and they looks the same. The third one contain just 2 Rows.
How I can make the Rows the same height as the Rows in the 3 Row QGridLayout? I tried with SpaceItem but with this the two rows are squezzed together.
If I do not use the Spacer the row height is not much.
I have the feeling that the QGridLyout does not know the actual dimensions at this creation time.
QGridLyout does not know the actual dimensions at this creation time
What do you mean exactly?
The height of a cell is determined by the content of the cells in the row. What do you have in all these layouts?
JoeCFD last edited by JoeCFD
@pixbyte you are right. Use sizeHint to set it. The widgets allocate actual sizes in resize event.