Solved QNetworkReply which is returning socket timeout error in compatibility mode on windows 7
-
@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.
-
@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?
-
@jsulm There is some impact on other functionalities if we are not setting compatibility mode. And yes, we were setting manually by right clicking.
-
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.
-
Thanks a lot. It resolved our issue.
-
@dlhts So please mark this topic as SOLVED too. Thank!
-
@aha_1980 Done.
-
This post is deleted!