I am making a hybrid Qt c++ and QML Based application where at first i need to send a request to the server, on correct response i need to parse that and then display it using a QML View like List View.
I am able to send a request, parse the response make a data model using QAbstractListModel, but now my problem is i am using QNetworkAccessManager to make the http get request, which is asynchronous in nature.
I initiate the request in main.cpp of the application, so my QML view is loaded when prior to the data added in the data model, so can any body help me in understanding how to update the data in QML once the finished Signal is emitted by QNetworkAccessManager. or simply how i can wait for the finished signal in QML.
Please let me know if question is not clear.