Hello!
May be it will be a stupid question, but I want to know it for sure.
Does the same principle work in QT as in C++: what was created dynamically, suppose to be deleted with a help of key-word "delete"?
For instance, I have the next line of code: QListView *_lv = new QListView; Will be deleted automatically _lv-variable or in the end I suppose delete it by myself?
And next example: I have my own class "myClass" which is derived from, let say, QGraphicsItem and the next line of code: myClass *_mc = new myClass();. The question is the same.
Thank you beforehand for answers.
Bookmarks