While developing an application with QML and C++ please refrain to emit signals in QML that should be handled by C++ code. Just the opposite, keep QML as the UI layer and expose your C++ object to QML (as a context property or with
qmlRegisterXXX) and then call a slot or a Q_INVOKABLE method of this
object from QML.
Showing posts with label Q_INVOKABLE. Show all posts
Showing posts with label Q_INVOKABLE. Show all posts
Sunday, June 3, 2018
Subscribe to:
Posts (Atom)