У меня есть простой объект QT. Когда я выполняю приведенный ниже код, управление передается объекту QT, но я бы хотел, чтобы часть QT работала как поток.
int main(int argc, char *args[])
{
gui *GUI;
//// before call
QApplication app(argc,args);
GUI = new gui();
GUI->show();
////i want to be able to do stuff here in parallel with the QT code.
// If I spawn a thead here or give a simple printf statement here
// or before call it executes only after GUI exits
return app.exec();
}