sajis997
12th April 2011, 19:33
Hello forum,
I have declared a class as follows:
class Item : public QObject, QGraphicsItem
{
private:
//the following is turn also a sub-class of QObject
TextGraphicsItem *m_text;
};
Do i have to delete explicitly m_text in the destrucor or Qt will take care of it to delete the memory?
Thanks
Sajjad
I have declared a class as follows:
class Item : public QObject, QGraphicsItem
{
private:
//the following is turn also a sub-class of QObject
TextGraphicsItem *m_text;
};
Do i have to delete explicitly m_text in the destrucor or Qt will take care of it to delete the memory?
Thanks
Sajjad