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

MultiPointTouchArea signals deliver QList<QObject*>

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.5.2, 6.6.0, 6.6
    • 6.5.0
    • QML: Compiler
    • None
    • 80ed6679c (dev), a2321519f (6.5)

    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

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

        Activity

          People

            ulherman Ulf Hermann
            cajus Cajus Pollmeier
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes