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

Qml 'Shape' affects RectangluarGlow and other unrelated Items (NVIDIA)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • P2: Important
    • None
    • 5.11.1, 5.11.2, 5.12.8
    • Linux/X11, Windows

    Description

      With NVIDIA hardware - The Shape Item from QtQuick.Shapes affects totally unrelated Items:

      The simple example shows, if shape is visible the outcome will be like shown in {{Screenshot-20181024102525-420x442.png }}

      import QtQuick 2.3
      import QtQuick.Window 2.2
      import QtQuick.Controls 1.0
      import QtQuick.Layouts 1.0
      import QtGraphicalEffects 1.0
      import QtQuick.Shapes 1.0
      
      Window {
          id: mainWindow
          visible: true
          width: 400; height: 400
          Shape { id: shape; visible: checkBoxShape.checked; width: 1; height: 1}
      
          ColumnLayout {
              anchors.fill:  parent
              spacing: 15
              CheckBox {
                  id: checkBoxShape
                  text: "Shape Object visible"
                  Layout.fillWidth: true
                  Layout.margins: 10
              }
              CheckBox {
                  id: checkBoxGlow
                  text: "RectangluarGlow visible"
                  Layout.fillWidth: true
                  Layout.margins: 10
                  checked: true
              }
              Item {
                  id: item
                  Layout.fillHeight: true
                  Layout.fillWidth: true
                  Layout.margins: 30
                  RectangularGlow {
                      id: effect
                      visible: checkBoxGlow.checked
                      anchors.fill: rect
                      glowRadius: 10
                      spread: 0.2
                      color: "red"
                  }
                  Rectangle {
                      id: rect
                      anchors.fill: parent
                      border.color: "black"
                      border.width: 10
                      color: "white"
                      Text {
                          anchors.centerIn: parent
                          text: "This is a text."
                      }
                  }
              }
          }
      }
      

       

      Attachments

        1. main.qml
          1 kB
          Jahn Fuchs
        2. Screenshot-20181024102513-420x442.png
          18 kB
          Jahn Fuchs
        3. Screenshot-20181024102525-420x442.png
          18 kB
          Jahn Fuchs
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            lagocs Laszlo Agocs
            fsjrt Jahn Fuchs
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes