Re: QTableWidget -- SetItem
ya... the clear function will delete the items.. you can always check this by holding a item pointer and then clearcontents.. after that try to use the item.. if you app crashes then the item is deleted :)
Re: QTableWidget -- SetItem
Quote:
ya... the clear function will delete the items.. you can always check this by holding a item pointer and then clearcontents.. after that try to use the item.. if you app crashes then the item is deleted
Better way would be to subclass QTableWidgetItem and put a break point in destructor and check if the destructor is called when clearContents is called.
Re: QTableWidget -- SetItem
Quote:
Originally Posted by
aamer4yu
Better way would be to subclass QTableWidgetItem and put a break point in destructor and check if the destructor is called when clearContents is called.
too much coding for a simple check.. furthermore i like things to burn in horror...:)