06-01-2012 01:26 PM
I have a settings class with Q_INVOKABLE functions and settings.qml with a page object. I push the page(settings.qml) onto my NavigationPane(root), and set qml context property to have access to the settings class (qml->setContextProperty("settings", m_settings)).The reference successfully works, but I am getting an error in the console:
The class functions are accessible, BUT why is there an error in the console?
06-01-2012 04:43 PM
Do you have an objectName defined in settings.qml named "settings"?
setContextProperty() binds a QML objectName to a C++ object, it can't be used to bind to a QML file which looks like you may be doing.