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

MultiPointTouchArea signals deliver QList<QObject*>

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • 6.6
    • 6.5.0
    • QML: Compiler
    • None

    Description

      Compiling

      import QtQuick
      import QtQuick.Window
      
      Window {
          width: 640
          height: 480
          visible: true
          title: qsTr("Hello World")
      
          Rectangle {
              anchors.fill: parent
      
              MultiPointTouchArea {
                  anchors.fill: parent
                  touchPoints: [
                      TouchPoint { id: point }
                  ]
      
                  onPressed: (touchPoints) => console.log(touchPoints)
              }
          }
      }
      

      runs into

      Warning: Main.qml:19:13: Type QList<QObject*> of parameter touchPoints in signal called pressed was not found, but is required to compile onPressed. Did you add all import paths? [signal-handler-parameters]
                  onPressed: (touchPoints) => console.log(touchPoints)
                  ^^^^^^^^^
      

      . You need to register a QML_SEQUENTIAL_CONTAINER to get rid of that warning.

      Attachments

        Activity

          People

            qtqmlteam Qt Qml Team User
            cajus Cajus Pollmeier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: