have a dialog
and on
and in main i haveCode:voidCardSelect::on_pushButton_clicked() { //send a INT back to main// }
i am missing something to connect the variable from the dialog, and use it in the main and close the dialog....Code:CardSelectQDialog; QDialog.setModal(true); if(QDialog.exec()) { Card=//the return INT from Dialog// QMessageBox::information(0,"Success",QString::number(Card)); }