×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Dec 2007
    Posts
    104

    Bug with qml Webview

    Hi,

    I need a good work around for the following bug

    https://bugreports.qt-project.org/browse/QTWEBKIT-352

    My problem is,
    while navigating inside webview the previous page content is still visible partially ( previous page's content is masked with current page's content )

    Can someone suggest a fix for this ?

    -CK

  2. #2
    Registered User
    Join Date
    Sep 2011
    Posts
    449

    Re: Bug with qml Webview

    Hi

    QML workaround - Try creating 2 webview instances and setting the stack order using z.

    Code:
    Rectangle{
    
    WebView{
    anchors.fill:parent
    z:2
    }
    
    
    WebView{
    anchors.fill:parent
    z:1
    }
    }
    Z is a property of item.

    It sets the stacking order of sibling items. By default the stacking order is 0.

    Items with a higher stacking value are drawn on top of siblings with a lower stacking order. Items with the same stacking value are drawn bottom up in the order they appear.

  3. #3
    Registered User
    Join Date
    Dec 2007
    Posts
    104

    Re: Bug with qml Webview

    Hi,

    Thanks for the reply. Have you tried this solution ??

    In my understanding, the texts from different pages of SAME webview is overlapped (masked).. I tried a same kind of solution, but with a background rectangle by setting z value less than webview's z value. I will try again with 2 webviews.

    Thanks,
    CK

  4. #4
    Registered User
    Join Date
    Dec 2007
    Posts
    104

    Re: Bug with qml Webview

    It didn't help me
    http://celluleus.blogspot.com

  5. #5
    Registered User
    Join Date
    Sep 2011
    Posts
    449

    Re: Bug with qml Webview

    hi,

    The other workaround is to create a qml proxy plugin on QGraphicsWebView and have your own qmlwebview component.

    Details on how to are in this DiBo thread

    This works, i tested it sometime back.

  6. #6
    Registered User
    Join Date
    Jul 2007
    Posts
    3

    Re: Bug with qml Webview

    I'm using the following workaround:

    Code:
    onLoadFinished: {
        evaluateJavaScript("\
            if (!document.body.style.backgroundColor)  { \
                document.body.style.backgroundColor='white';\
            }\
        ");
    }

  7. #7
    Super Contributor
    Join Date
    Mar 2009
    Posts
    1,024

    Re: Bug with qml Webview

    Clean and easy, nice!
    I think this is far better than using the popular QGraphicsWebView proxy item.

    Thanks a lot for sharing!

Similar Threads

  1. QML With webview
    By waelfarouk in forum [Archived] Qt Quick
    Replies: 1
    Last Post: 2011-07-25, 05:25
  2. QML webview
    By ENEX in forum [Archived] Qt Quick
    Replies: 2
    Last Post: 2011-05-06, 06:35
  3. need a webview...
    By amol_benare604 in forum Symbian
    Replies: 4
    Last Post: 2011-04-14, 10:28
  4. WebView Problem
    By m1kad0 in forum [Archived] Beginning Qt
    Replies: 3
    Last Post: 2011-04-08, 06:51
  5. 关于 webview 真机显示问题
    By kenchoo851015 in forum [Archived] Qt General ( Qt技术)
    Replies: 2
    Last Post: 2011-04-01, 10:09

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×