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

QtQuick Shapes rendering is broken with layers and NVIDIA vendor extensions enabled

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • P3: Somewhat important
    • Resolution: Unresolved
    • 5.11
    • None
    • Quick: SceneGraph
    • None
    • Ubuntu 16.04
      Nvidia 384.111

    Description

      The following example is broken when NVIDIA vendor extensions are enabled (this is a modified version of the example from the documentation with a simple Item added with `layer.enabled: true`) :

      import QtQuick 2.8
      import QtQuick.Window 2.2
      import QtQuick.Shapes 1.0
      
      Window {
          visible: true
          width: 640
          height: 480
          title: qsTr("Hello World")
      
          Item {
              anchors.fill: parent
              layer.enabled: true
              Shape {
                  width: 200
                  height: 150
                  anchors.centerIn: parent
                  ShapePath {
                      strokeWidth: 4
                      strokeColor: "red"
                      fillGradient: LinearGradient {
                          x1: 20; y1: 20
                          x2: 180; y2: 130
                          GradientStop { position: 0; color: "blue" }
                          GradientStop { position: 0.2; color: "green" }
                          GradientStop { position: 0.4; color: "red" }
                          GradientStop { position: 0.6; color: "yellow" }
                          GradientStop { position: 1; color: "cyan" }
                      }
                      strokeStyle: ShapePath.DashLine
                      dashPattern: [ 1, 4 ]
                      startX: 20; startY: 20
                      PathLine { x: 180; y: 130 }
                      PathLine { x: 20; y: 130 }
                      PathLine { x: 20; y: 20 }
                  }
              }
          }
      }
      

      Resulting output:

      Setting `vendorExtensionsEnabled: false` is currently a workaround:

      Attachments

        1. image-2018-03-30-17-08-57-748.png
          6 kB
          Svenn-Arne Dragly
        2. image-2018-03-30-17-09-23-424.png
          6 kB
          Svenn-Arne Dragly
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            lagocs Laszlo Agocs
            dragly Svenn-Arne Dragly
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes