Qt 4.8 qrc url display issue



  • Greetings!

    I have a problem after upgrading from 4.7.4 to 4.8 with embedded web engine. My app displays local html page, stored in app's resources and displayed via qrc:/ url. After upgrading to 4.8 QWebView::setUrl or QWebView::load leads to display not page but text source of it. Http links like http://google.com are opened normally. Looking for the answer in google or in stackoverflow did not bring me solution. So, could anyone give a clue what happen?

    Thanks.



  • The same happens with FancyBrowser demo. Just add html document to project's resources and after application launch enter path qrc:/<your_html_document>

    Can anyone here give me what to do to workaround this bug?



  • Have replaced QWebView::load(qrcUrl) with html-document data reading and QWebView::setContent. Not the best solution, but at least it is working.

    Thanks


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.