Hi, Employ like this: dlg.exec(); if (dlg.clickedButton() == btn) qDebug() << "Yes was clicked"; However, why not make use of the standard buttons, which already include "Yes"/"No"?