Hello forum,
I need a read-only property available in qml. Do I have to define a notify signal ? Consider the following scenario:
Q_PROPERTY(float maxPatchVertices READ maxPatchVertices NOTIFY maxPatchVerticesChanged)
Q_PROPERTY(float maxPatchVertices READ maxPatchVertices NOTIFY maxPatchVerticesChanged)
To copy to clipboard, switch view to plain text mode
Above i need to retrive the value from the underlying C++ object and make it available to qml. Can i define the above snippet as follows instead:
Q_PROPERTY(float maxPatchVertices READ maxPatchVertices)
Q_PROPERTY(float maxPatchVertices READ maxPatchVertices)
To copy to clipboard, switch view to plain text mode
Thanks
Bookmarks