Thank you so much for your response.
I have made the changes in argument from reference to pointer but emit is not waiting for the return value which we are setting on messageBox button click.
for refrence:
int retval = 0;
emit sigOpenMessageBox(&retval)
if( retval == 1)
{
qDebug()<< "Yes button click in messageBox "
}
else
{
qDebug()<< "No button click"
}
here emit is not waiting for button click response. next line of code is executing before button click response.