right.... so please say what is wrong with

Qt Code:
  1. QScopedPointer<Apple> m_apple;
To copy to clipboard, switch view to plain text mode 


And what do you think will happen if Apple has been deleted (because WA_deleteonclose is true), and the the destructor is called? Hint - double deletion.