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
QtWS25 Last Chance

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 861 Views
  • 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 11 Sept 2019, 13:22 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,

    J 1 Reply Last reply 12 Sept 2019, 05:34
    0
    • D DLHTS
      11 Sept 2019, 13:22

      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,

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 12 Sept 2019, 05:34 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 12 Sept 2019, 09:12 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.

        J 1 Reply Last reply 12 Sept 2019, 09:17
        0
        • D DLHTS
          12 Sept 2019, 09:12

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

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 12 Sept 2019, 09:17 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 12 Sept 2019, 09:27
          1
          • J jsulm
            12 Sept 2019, 09:17

            @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 12 Sept 2019, 09:27 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
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 13 Sept 2019, 20:36 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
              • R Offline
                R Offline
                Reshma Monica
                wrote on 14 Sept 2019, 02:56 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 14 Sept 2019, 04:26 last edited by
                  #8

                  Thanks a lot. It resolved our issue.

                  A 1 Reply Last reply 14 Sept 2019, 18:23
                  0
                  • D DLHTS
                    14 Sept 2019, 04:26

                    Thanks a lot. It resolved our issue.

                    A Offline
                    A Offline
                    aha_1980
                    Lifetime Qt Champion
                    wrote on 14 Sept 2019, 18:23 last edited by
                    #9

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

                    D 1 Reply Last reply 15 Sept 2019, 15:30
                    0
                    • A aha_1980
                      14 Sept 2019, 18:23

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

                      D Offline
                      D Offline
                      DLHTS
                      wrote on 15 Sept 2019, 15:30 last edited by
                      #10

                      @aha_1980 Done.

                      A 1 Reply Last reply 15 Sept 2019, 16:46
                      1
                      • D DLHTS
                        15 Sept 2019, 15:30

                        @aha_1980 Done.

                        A Offline
                        A Offline
                        aha_1980
                        Lifetime Qt Champion
                        wrote on 15 Sept 2019, 16:46 last edited by
                        #11
                        This post is deleted!
                        1 Reply Last reply
                        0

                        10/11

                        15 Sept 2019, 15:30

                        • Login

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