Results 1 to 2 of 2

Thread: Webview->setHTML issue?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Webview->setHTML issue?

    Have I stumbled across a Webkit bug here? This used to work in 4.4.3 and now it won't in 4.5.1

    We have a document that we want to display page by page, the whole document is inside an XML file.

    in 4.4.3, I was able to do a ->setHtml(PageData, baseUrl); correctly.

    now, in 4.5.1, it only works once, subsequent setHtml() are met with nothing, the initial view is still there and the new HTML isn't shown at all!

    Anyone knows if this is a Qt issue, or a limitation, or something new I need to do that I'm missing here?

    What I don't get though, is that the Qt Previewer sample, this works fine.

    So I'm obviously doing something different, though I can't see what it is, since the sample only calls the setHtml like I'm doing.

    Any help would be greatly appreciated

  2. #2

    Default Re: Webview->setHTML issue?

    Well, I figured out what was the problem,


    my baseUrl was containing an anchor.


    "http://www.url.com/mypage.html#something"

    in 4.4.3, seems that setHTML didn't care about the anchor being there.
    in 4.5.1, it seems it doesn't care the 1st time, but another setHTML will be totally ignored.
    once I removed the anchor, everything worked as intended.

    Now I have to test on mac, see if this still holds up.

Similar Threads

  1. Replies: 8
    Last Post: 27th April 2009, 19:19

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.