Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Solved QtWebkit qt 5.5 have network problem

    General and Desktop
    4
    11
    1138
    Loading More Posts
    • 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.
    • c.savur
      c.savur last edited by

      Hello Everyone,

      I have a weird problem that I could not figure out how to solve it.

      I have QWebview in the one of the widgets and it loads an url that hosted on the same computer. When this computer connected to internet everything is working fine.

      But whenever there is a network connection but the computer is disconnected, Qwebview does not load the url although both running on the same computer.

      I try to solve the problem using QnetworkSession which goes trough each network config and trys to open a session. This approach works sometimes but not all the time.

      My question is, although both apache and Qt application are running on the same computer why Qwebview depends on internet connection?

      Thank you in advance.

      1 Reply Last reply Reply Quote 0
      • mrjj
        mrjj Lifetime Qt Champion last edited by

        @c.savur said:
        Hi

        url that hosted on the same computer.

        so you load it with something like
        http://127.0.0.1/myfile.html
        ?
        I wonder if it can be a DNS problem if use some other way
        for URL.

        c.savur 1 Reply Last reply Reply Quote 0
        • c.savur
          c.savur @mrjj last edited by

          @mrjj

          Yes, that what exactly What I am doing. But it os not working.

          When network disabled, it is working fine but when it is disconnected this problem is happening.

          Any other idea that can caused this problem?

          mrjj 1 Reply Last reply Reply Quote 0
          • mrjj
            mrjj Lifetime Qt Champion @c.savur last edited by

            @c.savur
            can you view the page in another browser like chrome?

            c.savur 1 Reply Last reply Reply Quote 0
            • c.savur
              c.savur @mrjj last edited by c.savur

              @mrjj

              yes, I tried Firefox and it is working.

              I have solved the problem with setting up the network interface to auto connect. So whenever there is an available network connection, network manager connects automatically.

              So this is kind of workaround for the disconnected state.

              Thank you for your time.

              1 Reply Last reply Reply Quote 1
              • H
                huarda last edited by

                Hi, how did you solve it?

                1 Reply Last reply Reply Quote 0
                • H
                  huarda last edited by

                  @huarda said in QtWebkit qt 5.5 have network problem:

                  Hi, how did you solve it?

                  @c-savur
                  Hi, how did you solve it?

                  jsulm 1 Reply Last reply Reply Quote 0
                  • jsulm
                    jsulm Lifetime Qt Champion @huarda last edited by

                    @huarda said in QtWebkit qt 5.5 have network problem:

                    how did you solve it?

                    Isn't the answer in the post from @c-savur : "I have solved the problem with setting up the network interface to auto connect"?

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

                    H 1 Reply Last reply Reply Quote 0
                    • H
                      huarda @jsulm last edited by

                      @jsulm Is it set in QT? How to set it up? Can you show us the code you solved

                      jsulm 1 Reply Last reply Reply Quote 0
                      • jsulm
                        jsulm Lifetime Qt Champion @huarda last edited by

                        @huarda said in QtWebkit qt 5.5 have network problem:

                        Is it set in QT?

                        No, in the OS

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

                        1 Reply Last reply Reply Quote 0
                        • H
                          huarda last edited by

                          Is it set in /etc/etc/network/interfaces?

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post