[SOLVED] Keys is only available via attached properties
-
I have the following error when trying to run my application with Keys {} in a QML file
"Keys is only available via attached properties"
What can I do to use keyboard keys?
-
Have a look at this:
"Keys documentation":http://qt-project.org/doc/qt-5/qml-qtquick-keys.html#example-usage
-
Yes, I know. But the problem was I was using Keys like this
Keys {}
and must be used like this
Keys.on... {}
Thanks