Important: Please read the Qt Code of Conduct -

Rendering a page through webkit gives me a blue square with question mark; what precisely goes wrong?

  • I have a big chunky project that, as one of its many features, has some QML that renders a webpage. The webpage it renders is a standard webpage on the internet; nothing special.

    When it renders it, a mysterious blue square with a question mark is seen. Rendering it with a standard browser shows nothing in that spot, so I look at the source and find something like this:

    @<!-- CANDDi -->
    (function(){var a=document.createElement("script"),b=document.getElementsByTagName("script")[0];a.type="text/javascript";a.async=true;a.src=("https:"===document.location.protocol?"https://cdns":"http://cdn")+"";b[removed].insertBefore(a,b);}());
    <noscript ><img src=''/></noscript>
    <!-- /END CANDDi -->@

    Aha, I think. Looks like some kind of marketing company javascript. Presumably my QML browser is unable to deal with this and simply sticks a blue square with a question mark in place to let me know it's been unable to handle this; although looking at it, whilst I don't speak javascript, it looks like refusing to render the javascript should actually be met with sticking that gif, i.gif, there instead? I'd really like to know a bit more, though; can someone tell me what the problem is with a little more detail. I understand that the QML browser is a webkit browser? Is this some issue with webkit, or are there settings that I simply haven't enabled, or some other such?

Log in to reply