I'm trying to dynamically remove/delete rows from a QGridLayout, but I can't seem to get the rowCount() property to update. This is what I'm trying:
Qt Code:
qDebug()<<"Before: "<<my_grid_layout->rowCount(); my_grid_layout->removeItem(child); my_grid_layout->removeWidget(child->widget()); delete child->widget(); delete child; my_grid_layout->update(); qDebug()<<"After: "<<my_grid_layout->rowCount();To copy to clipboard, switch view to plain text mode
Bookmarks