[Interest] Qt Webkit on Linux Goes Blank When No Network Connection
Viktor Engelmann
viktor.engelmann at qt.io
Wed Aug 24 10:46:21 CEST 2016
Can you try on Qt 5.6?
I have tried it on Qt 5.6.2 (Linux Mint 17.3 with Apache 2.4.7 though)
and it works.
Maybe you don't have the loopback device installed, so 127.0.0.1 is
routed through eth0 and the router is smart enough to send requests to
127.0.0.1 back to you? Or maybe there is an entry with static routing of
127.0.0.1 over eth0 in your iptables?
Are you sure it's http and not https? I could imagine that the problem
has to do with SSL certificates being unavailable.
regards
Viktor
Am 23.08.2016 um 17:17 schrieb Jason Kretzer:
> Hello all,
>
> I am back with another weird thing.
>
> I am using Qt 5.5 on Ubuntu 16.04. I am using the webkit widget to
> display some html in the application. The html is being served from a
> local web server on port 8080. The URL has a format like this:
> http://localhost:8080/SomeDirectory/index.html. As a side note, I
> have also tried http://127.0.0.1:8080/SomeDirectory/index.html. The
> web server is lighttpd.
>
> What happens is this:
>
> 1. Lighttpd is running
> 2. Network cable is plugged in and network is properly configured
> 3. I open the webkit widget and see the html display properly
> 4. Network cable is un-plugged
> 5. I open the webkit widget and see a blank screen with nothing in it
> 6. I try it with very basic html — a <html><body><h1>Hello
> World</h1></body></html> and it is still blank
> 7. I try it with a browser going to the same files and they all work
> 8. I tried it running the webkit widget from inside of qtcreator and
> same result — blank
> 9. To test that I was not doing something wrong with my widget, I
> tested it with the FancyBrowser example that is with qtcreator and
> got the same results — blank.
> 10. I plug the network cable back in and it all works again
>
> No errors are thrown that I can see.
>
> Any ideas?
>
> Thanks!
>
> -Jason
>
> //------------------------------//
> Jason R. Kretzer
> Lead Application Developer
> Jason at gocodigo.com <mailto:Jason at gocodigo.com>
> //------------------------------//
>
> “quidquid latine dictum sit altum videtur"
>
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
--
Viktor Engelmann
Software Engineer
The Qt Company GmbH
Rudower Chaussee 13
D-12489 Berlin
Viktor.Engelmann at qt.io
+49 151 26784521
http://qt.io
Geschäftsführer: Mika Pälsi, Juha Varelius, Mika Harjuaho
Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht
Charlottenburg, HRB 144331 B
<http://qt.io>
<http://www.facebook.com/Qt> <http://www.twitter.com/qtproject>
<https://www.linkedin.com/company/the-qt-company/>
<https://plus.google.com/104580575722059274792>
<https://www.youtube.com/QtStudios>
Qt World Summit 2016 <http://qtworldsummit.com/>
Qt World Summit 2016 | Pier 27, San Francisco, CA
Experience Exponential Potential on October 18-20
www.qtworldsummit.com <http://www.qtworldsummit.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160824/39173c6d/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: qt_logo_with_text_green_rgb_400x141.png
Type: image/png
Size: 16849 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160824/39173c6d/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: qt_facebook.png
Type: image/png
Size: 1407 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160824/39173c6d/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: qt_twitter.png
Type: image/png
Size: 1778 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160824/39173c6d/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: qt_linkedin.png
Type: image/png
Size: 1532 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160824/39173c6d/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: qt_googleplus.png
Type: image/png
Size: 1957 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160824/39173c6d/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: qt_youtube.png
Type: image/png
Size: 1610 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160824/39173c6d/attachment-0005.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: qtworldsummit2016_banner.jpg
Type: image/jpeg
Size: 35183 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160824/39173c6d/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0xCF322A63.asc
Type: application/pgp-keys
Size: 49709 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160824/39173c6d/attachment.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: viktor_engelmann.vcf
Type: text/x-vcard
Size: 271 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160824/39173c6d/attachment.vcf>
More information about the Interest
mailing list