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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.11.1, 5.11.2
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
    • Platform/s:
      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

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

          Activity

            People

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

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes