Details
-
Technical task
-
Resolution: Unresolved
-
P2: Important
Description
Code (adapted from https://doc.qt.io/qt-6/qml-qtqml-statemachine-signaltransition.html#signal-prop )
import QtQuick import QtQuick.Controls.Basic import QtQml.StateMachine as DSM Window { width: 640 height: 480 visible: true Button { anchors.fill: parent id: button DSM.StateMachine { DSM.State { DSM.SignalTransition { targetState: finalState signal: button.clicked } } DSM.FinalState { id: finalState } } } }
Compiler output
Warning: main.qml:17:36: Could not compile binding for signal: Cannot generate efficient code for lookup of function property. [compiler] signal: button.clicked ^^^^^^^