Hi,
qt-project.org writes
Note: The ownership of item is transferred to the layout, and it’s the layout’s responsibility to delete it.
here [qt-project.org]
delete qWidget->layout()
where qWidget has a QGridLayout
doesn’t delete items of the layout in the qWidget added via addWidget to the layout.
How to do this?
↧