Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

How to run a C++ function when QML button is clicked? Using QQmlApplicationEngine

$
0
0
Have you rebuild the whole project after you added Q_OBJECT ? Oh sorry, I feel like an idiot now. I’ve rebuilt the whole project, and it runs perfectly. But when I click on the button I get this in the debugger: qrc:///main.qml:80: ReferenceError: _myClass is not defined <~ Same main problem.

Viewing all articles
Browse latest Browse all 4972

Trending Articles