rowCount does not change after removing one line widgets
-
I have such a QGroupBox, its layout is QGridlayout.

TherowCountis 5 now in above image.
After I remove the final line of buttons, it shows correctly but therowCountis still 5.

Is there any operation I missed?
-
I have such a QGroupBox, its layout is QGridlayout.

TherowCountis 5 now in above image.
After I remove the final line of buttons, it shows correctly but therowCountis still 5.

Is there any operation I missed?
@feiyuhuahuo You only remove the buttons, but not the row in the layout, right? Then the behaviour is correct.
-
https://forum.qt.io/topic/121308/how-to-get-row-and-columns-count-in-qgridlayout
Seems it's impossible to remove a certain row in a QGridlayout.