I have a dialog window with a class of QDialog. I declare it in the header files with:
MyDialogClass myDialogWindow = nullptr;
and create the window on runtime somewhere with
myDialogWindow = new MyDialogClass(this);
It is also delf destroying, because of it's attributes:
this->setAttribute(Qt::WA_DeleteOnClose);
Does anyone now how can I set the myDialogWindow pointer to nullptr after the self deletion without connection signals?
Thanks in advance.