T
T
terminator-light2018-04-28 16:29:10
Qt
terminator-light, 2018-04-28 16:29:10

How to make sending a request work in a finished Qt application?

Before that, I tried to build the project with static linking, compiled the Qt sources, indicated Qt Creator in the kits, and there the warning shows: the MinGW 5.3 C ++ compiler ... cannot create code for the Qt profile ... . So I left it.
Then I threw dll-libs along with the assembly, the application started, but when the button was pressed, no http request was sent. The method that sent the request was visited, but for some reason it ignored this piece:

currentRequest = new QNetworkRequest(QUrl("someurl"));
    manager->get(*currentRequest);

and then the rest of the code was executed.
What could it be, how to solve this problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly, 2018-04-28
@terminator-light

How did you determine that it is not sent? By the status of the server response or just guessing? The get method returns doc.qt.io/qt-5/qnetworkreply.html. There you can see the error, if any, wait for the request to complete, and read the response.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question