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

DropShadow crash when changing radius

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.8.0
    • None

      When radius property of DropShadow component change, the app crashes on the given assert:

      ASSERT failure in QVector<T>::operator[]: "index out of range", file c:\Users\qt\work\install\include\QtCore/qvector.h, line 437

      If you try the following sample, the app crashes when you release the mouse:

          Item {
              anchors.fill: parent
      
              Text {
                  anchors.centerIn: parent
      
                  id: text
                  text: "Hello World"
      
                  font.pointSize: 40
              }
      
              DropShadow {
                  anchors.fill: text
      
                  radius: area.pressed ? 16 : 8
                  samples: 32
      
                  source: text
      
                  color: "red"
              }
      
              MouseArea {
                  id: area
                  anchors.fill: parent
              }
          }
      

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

            sletta Gunnar Sletta
            benoitgradit BenoƮt Gradit
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes