connect(dlg, SIGNAL(accepted()), &eventLoop, SLOT (quit(0)) ); //< передать в quit нульconnect(dlg, SIGNAL(rejected()), &eventLoop, SLOT (quit(1)) ); //< передать в quit единицу
QSignalMapper map0;QSignalMapper map1;connect(dlg, SIGNAL(accepted()), map0, SLOT(map()));map0->setMapping(dlg, 0);connect(map0, SIGNAL(mapped(int)), this, SIGNAL(quit(int)));connect(dlg, SIGNAL(accepted()), map1, SLOT(map()));map0->setMapping(dlg, 1);connect(map0, SIGNAL(mapped(int)), this, SIGNAL(quit(int)));