[Qt-qml] private Q_INVOKABLE

aaron.kennedy at nokia.com aaron.kennedy at nokia.com
Tue Dec 6 12:31:55 CET 2011


Hi,

On 06/12/2011, at 11:20 AM, ext Sven Anderson wrote:

> Hi,
> 
> I noticed, that Q_INVOCABLEs, that are declared as private, cannot be 
> called from QML/javascript, while protected and public ones can. But 
> even the private ones can be called by QMetaObject::invokeMethod().
> 
> Can someone explain that?

Yes.  We chose not to allow invoking private methods because, well, they're private.

Cheers,

Aaron

> 
> 
> Thanks and best regards
> 
> Sven
> _______________________________________________
> Qt-qml mailing list
> Qt-qml at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-qml



More information about the Qt-qml mailing list