Unsolved QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
-
Hello,
I am using Qt Design Studio and I get the above error for my code in a .ui.qml file:Connections {
target: loginButton
onClicked: rectangle.state = "Login"
}
If I change the code according to the suggestion. I get an error that functions are not allowed in ui.qml files.
What are the right code guidelines for my code?
Thanks a bunch -
@kimnov hi
Add a property alias for your loginButton in your *.ui.qml file, then move your Connections to the *.qml file that goes with the *.ui.qml file.