Thanks for your replay. But, how delete that object. I modified your code sample...

Qt Code:
  1. void doExec() {
  2. tahede()->exec();
  3. }
  4.  
  5. void doDelete() {
  6. delete _tahede;
  7. }
  8.  
  9. protected:
  10. void changeEvent(QEvent *e);
  11.  
  12. Tahede* tahede() {
  13. if(!_tahede)
  14. {
  15. _tahede = new Tahede(this);
  16.  
  17. qDebug() << "Create now";
  18. }
  19. else
  20. {
  21. qDebug() << "Created before";
  22. }
  23. return _tahede;
  24. }
  25.  
  26. private:
  27. Tahede* _tahede;
To copy to clipboard, switch view to plain text mode 

Qt Code:
  1. void Dialog::on_pushButton_clicked()
  2. {
  3. doExec();
  4. }
  5.  
  6. void Dialog::on_pushButton_2_clicked()
  7. {
  8. doDelete();
  9. }
To copy to clipboard, switch view to plain text mode 


After I deleted with doDelete() function, and doExec() again, Application output still give me message "Created before" and my application crash What's wrong ?