Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
5.12.3
-
None
-
MSVC2017 64x, Win10, Qt 5.12.3, QtCreator 4.9.1
-
-
4fea3ec29c9911522a379a01418394b5cad29ecc (qt/qtdeclarative/5.12)
Description
Hello. When I run the next code in debug mode, I got qrc:/main.qml:31: ReferenceError: value is not defined. It seems that in release mode does not always work.
Quick solutions: onTest: function(value) or onTest: foo(value)
import QtQuick 2.12 import QtQuick.Window 2.12 Window { visible: true width: 640 height: 480 Rectangle { id: tra anchors.fill: parent color: "red" signal test(int value); MouseArea { anchors.fill: parent onClicked: { tra.test(1); } } } Connections { target: tra enabled: true ignoreUnknownSignals: true onTest: { console.log("Value: " + value); } } }
Attachments
Issue Links
- duplicates
-
QTBUG-75393 [REG: 5.12.2->5.12.3]: When using Connections inside QML and a debugger is attached then it will fail at runtime to access named signal arguments
- Closed