QTableWidget memory management
-
wrote on 26 Apr 2023, 12:00 last edited by
Does QTableWidget::setHorizontalHeaderItem() take ownership of the item that is set?
The docs state that setItem() does take ownership, but is silent about the header item. -
Does QTableWidget::setHorizontalHeaderItem() take ownership of the item that is set?
The docs state that setItem() does take ownership, but is silent about the header item.wrote on 26 Apr 2023, 12:17 last edited by JonB@FuzzieTheWarg
You can assume it does, since itdelete
s any item already there. But I can't show you a doc stating this forsetHorizontalHeaderItem()
per se. -
wrote on 19 Jun 2023, 21:19 last edited by