can we access private qinvokable and qproperty into qml ?
-
i want to know can we access private Q_INVOKABLE function and Q_PROPERTY into qml ?
-
i want to know can we access private Q_INVOKABLE function and Q_PROPERTY into qml ?
Yes, QML (and other meta-object methods) will see Q_INVOKABLE and Q_PROPERTY even if they are declared private.
-
-
I agree with @sierdzio , and I just want to add that several years ago I got curious about why and how the private data-members are visible to QML. What I discovered was posted to stackoverflow (shared here for the curious): https://stackoverflow.com/a/56694238/10278