QObject *gisMaker = new QObject(); delete gisMaker; if(gisMaker == 0) { QMessageBox msg; msg.setText("Объект удален"); msg.show(); }