Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-28694

Using a ShaderEffectSource on a WebView results in incorrect rendering

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.2.0
    • 5.0.0 RC 2
    • Quick: SceneGraph
    • None
    • OS: Windows 7 Enterprise, 64-bit (SP1)
      Compiler: Microsoft Windows SDK v7.1
      GPU: Nvidia NVS 4200M, Driver 306.97, DirectX 11.0

    Description

      If a ShaderEffectSource is applied on a container including a WebView that doesn't fill the container the WebView will not be completely rendered. Scrolling the WebView causes different parts of the WebView to be clipped and parts of the WebView will be rendered outside its designated area. The included example demonstrates the bug, removing the ShaderEffectSource causes the example to behave as expected.

       
      import QtQuick 2.0
      import QtWebKit 3.0
      
      Rectangle {
          width: 600
          height: 600
          color: "black"
          Column {
              id: container
              anchors.fill: parent
              Rectangle {
                  width: parent.width
                  height: parent.height * (1/3)
                  color: "gray"
              }
              WebView {
                  width: parent.width
                  height: parent.height * (2/3)
                  url: "http://qt-project.org/"
              }
          }
          ShaderEffectSource {
              anchors.fill: container
              sourceItem: container
              hideSource: true
              live: true
          }
      }
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            sletta Gunnar Sletta
            thorsell Jonas Thorsell
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes