Thanks, i figured out.
And the last question, it's how to properly return the response?
I know how to "return" response in synchronous mode (using QEventLoop), but i need to implement returning response from async requests.
Here the "example"
UserApi *c = new UserApi;
QJsonDocument j = QJsonDocument::fromJson(c->sendMessage(..parameters here..)); // c->sendMessage needs to return response from GET request
UserApi *c = new UserApi;
QJsonDocument j = QJsonDocument::fromJson(c->sendMessage(..parameters here..)); // c->sendMessage needs to return response from GET request
To copy to clipboard, switch view to plain text mode
Best regards
Bookmarks