Help with QML accessing C++
-
I am working on a very large project that uses a lot of QML and C++. Unfortunately and rather amazingly there is absolutely no documentation to back up the source code or design.
So I am in the very painful situation of having to work it out as I go along. I'm not that experience with QML. The QML uses references like vehilcle.data then accesses more information off that.
Can anyone help me to identify what to look for in the C++ that might help me track down what is being accessed? I also need to add more functionality and would like to implement a call to a C++ function, but until I can established where its coming from I can't really begin.
-
In my qml code I have
Image { source: generalSettings.wireConnectionState ? "/res/wireconnected" : "/res/wiredisconnected" }
generalSettings is an instance of C++ class GeneralSettings
wireConnectionState is a function of instance generalSettings which returns a boolin your code it is likely vehicle is an instance of C++ class Vehicle and data is function of Vehicle
-
In my qml code I have
Image { source: generalSettings.wireConnectionState ? "/res/wireconnected" : "/res/wiredisconnected" }
generalSettings is an instance of C++ class GeneralSettings
wireConnectionState is a function of instance generalSettings which returns a boolin your code it is likely vehicle is an instance of C++ class Vehicle and data is function of Vehicle
-
@JoeCFD , thank you, that makes sense, however i cannot see in the source I have where data is a function of vehicle.