Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.0.1
-
None
Description
The code below prints only properties and not a single invokable method or slot.
QJSValueIterator it(p_js_engine->newQObject(new MyQObject()));
for(;it.hasNext(); it.next())
qDebug() << it.name();
Properties are declared like this:
Q_PROPERTY(QString MyProperty READ GetMyProperty WRITE SetMyProperty)
and methods like this:
1. Q_INVOKABLE virtual void MyMethod();
2. public slots:
virtual void MySlot();