QT4.3的手册上这样描述qtablewidget 的clear()的:
Removes all items in the view. This will also remove all selections. The table dimensions stay the same.
但不知道clear后会不会释放table里所有item的内存。
1)如果我在qtablewidget 里set了很多item,没有clear,有重新设置行数和列数setColumnCount(1), setRowCount(1),那原来的那些item仍然在内存中存在吗?还是被释放掉了?
2),在1)后又设置了一个新的item(setItem()),原来的那个被覆盖掉了,那它是被释放掉了还是游离在内存中?
多谢高手指点!