create a own custom dialogs for both and include the dialogs in base class
just try to show() them one after other between
QDialog::rejected() in the baseClass
rejected() will return if one dialog is closed ... show the next one ... simple