Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. Qt 4.8 qrc url display issue
QtWS25 Last Chance

Qt 4.8 qrc url display issue

Scheduled Pinned Locked Moved Qt WebKit
3 Posts 1 Posters 2.1k Views
  • 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 Offline
    F Offline
    FrenzyOrange
    wrote on last edited by
    #1

    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
    0
    • F Offline
      F Offline
      FrenzyOrange
      wrote on last edited by
      #2

      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
      0
      • F Offline
        F Offline
        FrenzyOrange
        wrote on last edited by
        #3

        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
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved