Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    Qt 4.8 qrc url display issue

    Qt WebKit
    1
    3
    1976
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F
      FrenzyOrange last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • F
        FrenzyOrange last edited by

        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?

        1 Reply Last reply Reply Quote 0
        • F
          FrenzyOrange last edited by

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

          Thanks

          1 Reply Last reply Reply Quote 0
          • First post
            Last post