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.
-
@c.savur said:
Hiurl 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 said:
Hiurl 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. -
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?
-
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.
-
@huarda said in QtWebkit qt 5.5 have network problem:
Hi, how did you solve it?
@c-savur
Hi, how did you solve it?@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"?
-
@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"?
-