Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.4.1
-
23d5540ee (dev), a354d91b8 (dev)
Description
Compiling
import QtQuick import QtQuick.Controls.Basic Window { width: 640 height: 480 visible: true title: "Qt" Action { id: downloadAction onTriggered: source => { console.log(source.pressX) } } MenuItem { id: menuItem action: downloadAction text: qsTr("&Download") } }
claims
Warning: main.qml:12:9: Signal handler for "onTriggered" has more formal parameters than the signal it handles. onTriggered: source => { console.log(source.pressX) } ^^^^^^^^^^^
. Removing source silcences the warning, but then there's no source, of course.
At least the documentation reads as if there should be one and the code works by outputting the pressX coordinate. Seems to be compiler related.