> A member function marked with Q_INVOKABLE has not the type
> QMetaMethod::Method but QMetaMethod::Signal. This looks not
> consistent to me.
Sorry, false alarm.
This example works perfectly:
#include <QObject>
#include <QMetaMethod>
class A : public QObject
{
Q_OBJECT
public:
Q_INVOKABLE A(int)
{
int idx = metaObject()->indexOfMethod("foo()");
Q_ASSERT(metaObject()->method(idx).methodType() ==
QMetaMethod::Method);
idx = metaObject()->indexOfConstructor("A(int)");
Q_ASSERT(metaObject()->constructor(idx).methodType() ==
QMetaMethod::Constructor);
}
Q_INVOKABLE void foo() {}
};
--
Computer Bild Tarifsieger! GMX FreeDSL - Telefonanschluss + DSL
für nur 17,95 ¿/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a
_______________________________________________
Qt4-preview-feedback mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt4-preview-feedback