Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

sending INT from dialog back to main.cpp

$
0
0
I have a main.cpp setup, and added a dialog, in my dialog I have CardSelect QDialog; QDialog.setModal(true); if(QDialog.exec())         {                Card=   //the return INT from Dialog//                QMessageBox::information(0,"Success",QString::number(Card)); // ’this’ didn’t work so I used ‘0’// } And in my dialog named cardselect I have         void CardSelect::on_comboBox_highlighted(int index)                {                    card = index;                }           void CardSelect::on_pushButton_clicked()                {                          // code to send card back to main//                } I know I must be missing something here, simple yet obvious to someone who knows c++ inside and out, but for me, I learned mostly on my own, and cannot figure this out, if you could help with this, I would be very grateful. Thank you

Viewing all articles
Browse latest Browse all 4972

Trending Articles