Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QNetworkReply which is returning socket timeout error in compatibility mode on windows 7
Forum Updated to NodeBB v4.3 + New Features

QNetworkReply which is returning socket timeout error in compatibility mode on windows 7

Scheduled Pinned Locked Moved Solved General and Desktop
11 Posts 5 Posters 952 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    DLHTS
    wrote on last edited by
    #1

    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,

    jsulmJ 1 Reply Last reply
    0
    • D DLHTS

      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,

      jsulmJ Online
      jsulmJ Online
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @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".

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      3
      • D Offline
        D Offline
        DLHTS
        wrote on last edited by
        #3

        @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.

        jsulmJ 1 Reply Last reply
        0
        • D DLHTS

          @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.

          jsulmJ Online
          jsulmJ Online
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @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?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          D 1 Reply Last reply
          1
          • jsulmJ jsulm

            @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?

            D Offline
            D Offline
            DLHTS
            wrote on last edited by
            #5

            @jsulm There is some impact on other functionalities if we are not setting compatibility mode. And yes, we were setting manually by right clicking.

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Hi,

              What impacts ?
              You have to give more details.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • Reshma MonicaR Offline
                Reshma MonicaR Offline
                Reshma Monica
                wrote on last edited by
                #7

                @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.

                1 Reply Last reply
                3
                • D Offline
                  D Offline
                  DLHTS
                  wrote on last edited by
                  #8

                  Thanks a lot. It resolved our issue.

                  aha_1980A 1 Reply Last reply
                  0
                  • D DLHTS

                    Thanks a lot. It resolved our issue.

                    aha_1980A Offline
                    aha_1980A Offline
                    aha_1980
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    @dlhts So please mark this topic as SOLVED too. Thank!

                    D 1 Reply Last reply
                    0
                    • aha_1980A aha_1980

                      @dlhts So please mark this topic as SOLVED too. Thank!

                      D Offline
                      D Offline
                      DLHTS
                      wrote on last edited by
                      #10

                      @aha_1980 Done.

                      aha_1980A 1 Reply Last reply
                      1
                      • D DLHTS

                        @aha_1980 Done.

                        aha_1980A Offline
                        aha_1980A Offline
                        aha_1980
                        Lifetime Qt Champion
                        wrote on last edited by
                        #11
                        This post is deleted!
                        1 Reply Last reply
                        0

                        • Login

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Users
                        • Groups
                        • Search
                        • Get Qt Extensions
                        • Unsolved