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

Setting PathView's path to null causes crash

    XMLWordPrintable

Details

    Description

      import QtQuick 2.7
      import QtQuick.Window 2.2
      import QtQuick.Controls 2.0
      
      Window {
          visible: true
      
          Shortcut {
              sequence: "Ctrl+Q"
              onActivated: Qt.quit()
          }
      
          PathView {
              id: pathView
              anchors.fill: parent
              model: 10
              delegate: Text {
                  horizontalAlignment: Text.AlignHCenter
                  verticalAlignment: Text.AlignVCenter
                  width: implicitWidth + 20
                  height: implicitHeight + 20
                  text: modelData
              }
      
              path: Path {
                  startX: 120; startY: 100
                  PathQuad { x: 120; y: 25; controlX: 260; controlY: 75 }
                  PathQuad { x: 120; y: 100; controlX: -20; controlY: 75 }
              }
          }
      
          Button {
              onClicked: pathView.path = null
          }
      }
      

      Attachments

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

        Activity

          People

            wearyinside Oleg Yadrov
            mitch_curtis Mitch Curtis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes