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

How to perform tasks sequentially?

$
0
0
Hello everyone, I am writing a program that download a database from another computer, and display it in a corresponding QML view. But when I try to do so with the code below :     NetworkModule *nwMod = new NetworkModule();       //cout<<nwMod->getStateReady()<<endl;       if(nwMod->getStateReady() == 1)     {         DataBase *dbLoad = new DataBase();         PatientModelSPS *modelsps = NULL;         modelsps   = dbLoad->LoadDataBaseSPS(modelsps);           //cout<<nwMod->getStateReady()<<endl;           QmlManager *qmlMan = new QmlManager();         qmlMan->showQMLInterface(modelsps);         QDeclarativeView view;         view.setSource(QUrl::fromLocalFile("./main.qml"));                 //view.hide;     } The program starts and stucks after the file was received.

Viewing all articles
Browse latest Browse all 4972