Well, first I want Class1 to automatically delete m_apple on destruction, hence QScopedPointer.
Then I also want m_apple to be automatically set to 0 when it is deleted, hence QPointer.
Qt::WA_DeleteOnClose is set to true in Apple.
Of course I can just "delete m_apple" in destructor, but I want to see if this works.
Bookmarks