Important: Please read the Qt Code of Conduct -

QtWebkit qt 5.5 have network problem

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

  • Lifetime Qt Champion

    @c.savur said:

    url that hosted on the same computer.

    so you load it with something like
    I wonder if it can be a DNS problem if use some other way
    for URL.

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

  • Lifetime Qt Champion

    can you view the page in another browser like chrome?

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

Log in to reply