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

DropShadow crash when changing radius

    XMLWordPrintable

Details

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

    Description

      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
              }
          }
      

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes