QNetworkReply which is returning socket timeout error in compatibility mode on windows 7
-
Hello,
We are using Qt 5.11.2 for developing an application for Windows tablets and desktops. We are using QNetworkReply which is returning socket timeout error in compatibility mode on windows 7,we observed that QWebview is unable to render the page within our application.
Can you please suggest a solution in order to fix the issue.
For your information: On compatibility mode i am able to render the webpage.
Thanks,
-
Hello,
We are using Qt 5.11.2 for developing an application for Windows tablets and desktops. We are using QNetworkReply which is returning socket timeout error in compatibility mode on windows 7,we observed that QWebview is unable to render the page within our application.
Can you please suggest a solution in order to fix the issue.
For your information: On compatibility mode i am able to render the webpage.
Thanks,
@dlhts said in QNetworkReply which is returning socket timeout error in compatibility mode on windows 7:
in compatibility mode on windows 7
Do you mean XP compatibility mode? Why do you need compatibility mode?
Remember: Windows XP is not supported by Qt 5.11, see https://wiki.qt.io/PlatformSupport
Also, you contradict yourself: "is returning socket timeout error in compatibility mode" <> "On compatibility mode i am able to render the webpage". -
@jsulm said in QNetworkReply which is returning socket timeout error in compatibility mode on windows 7:
contradict
I am setting compatibility mode as 'windows 7' in windows 7 machine and we are not using windows xp. We need to set the compatibility as per our app requirement.
-
@jsulm said in QNetworkReply which is returning socket timeout error in compatibility mode on windows 7:
contradict
I am setting compatibility mode as 'windows 7' in windows 7 machine and we are not using windows xp. We need to set the compatibility as per our app requirement.
@dlhts I don't understand: what is the point to set compatibility mode to Windows 7 if you're already on Windows 7?
To be sure: with compatibility mode you mean right clicking on the executable and activating the compatibility mode?
-
@dlhts I don't understand: what is the point to set compatibility mode to Windows 7 if you're already on Windows 7?
To be sure: with compatibility mode you mean right clicking on the executable and activating the compatibility mode?
-
Hi,
What impacts ?
You have to give more details. -
@DLHTS , you can use the below code to increase the timeout for the network access manager.
QNetworkConfiguration networkConfig = QNetworkConfigurationManager().defaultConfiguration();
networkConfig.setConnectTimeout(30000);
networkAccessManager->setConfiguration(networkConfig);The above code increases the timeout and then helps in waiting for the response which in turn can avoid timed out error.
-
This post is deleted!