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. QtWebkit qt 5.5 have network problem

QtWebkit qt 5.5 have network problem

Scheduled Pinned Locked Moved Solved General and Desktop
11 Posts 4 Posters 1.6k 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.
  • c.savurC Offline
    c.savurC Offline
    c.savur
    wrote on last edited by
    #1

    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
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @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.savurC 1 Reply Last reply
      0
      • mrjjM mrjj

        @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.savurC Offline
        c.savurC Offline
        c.savur
        wrote on last edited by
        #3

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

        mrjjM 1 Reply Last reply
        0
        • c.savurC c.savur

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

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

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

          c.savurC 1 Reply Last reply
          0
          • mrjjM mrjj

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

            c.savurC Offline
            c.savurC Offline
            c.savur
            wrote on last edited by c.savur
            #5

            @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
            1
            • H Offline
              H Offline
              huarda
              wrote on last edited by
              #6

              Hi, how did you solve it?

              1 Reply Last reply
              0
              • H Offline
                H Offline
                huarda
                wrote on last edited by
                #7

                @huarda said in QtWebkit qt 5.5 have network problem:

                Hi, how did you solve it?

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

                jsulmJ 1 Reply Last reply
                0
                • H huarda

                  @huarda said in QtWebkit qt 5.5 have network problem:

                  Hi, how did you solve it?

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

                  jsulmJ Offline
                  jsulmJ Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  @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
                  0
                  • jsulmJ jsulm

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

                    H Offline
                    H Offline
                    huarda
                    wrote on last edited by
                    #9

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

                    jsulmJ 1 Reply Last reply
                    0
                    • H huarda

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

                      jsulmJ Offline
                      jsulmJ Offline
                      jsulm
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      @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
                      0
                      • H Offline
                        H Offline
                        huarda
                        wrote on last edited by
                        #11

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

                        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