what's the point of NOT using QDialog if what you want to do is exactly what QDialog DOES and it gives you for free?
Because my dialog box has many particular cosmetic differences due to my project description and that's why couldn't provide more code:/. I hope the following lets you understand the case more clearly.
mMessageDialogs.reset(new MessageDialogs(this->parentWidget(),1,1,"WARNING","blablabla"));
mMessageDialogs->hide();
mMessageDialogs->setWindowModality(Qt::ApplicationModal);
mMessageDialogs->move(this->x()+100,this->y()+300);
mMessageDialogs->show();
mMessageDialogs.reset(new MessageDialogs(this->parentWidget(),1,1,"WARNING","blablabla"));
mMessageDialogs->hide();
mMessageDialogs->setWindowModality(Qt::ApplicationModal);
mMessageDialogs->move(this->x()+100,this->y()+300);
mMessageDialogs->show();
To copy to clipboard, switch view to plain text mode
Bookmarks