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.
↧