Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QNetworkReply which is returning socket timeout error in compatibility mode on windows 7
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.
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".
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.
What impacts ?
You have to give more details.
Reshma Monica last edited by
@DLHTS , you can use the below code to increase the timeout for the network access manager.
QNetworkConfiguration networkConfig = QNetworkConfigurationManager().defaultConfiguration();
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!
This post is deleted!