Hello Everyone,
I have one thread function. I am emitting a signal which is showing messagebox with yes and no button.
How i can know in thread cleaning function which button was pressed.
bool MainWindow::thread_cleaning()
{
int retvalue = emit sigMsgBoxOpen(); // MessageBOX open slot will call
if (retvalue == 0) // check Yes button pressed in messageBox
{
qDebug()<<"Yes button pressed";
}
else
{
qDebug()<<"NO button pressed";
}
}
Bookmarks