[Qt4-preview-feedback] Q_INVOKABLE method is not a QMetaMethod::Method

Peter Kuemmel syntheticpp at gmx.net
Wed Feb 25 11:24:06 CET 2009


A member function marked with Q_INVOKABLE has not the type QMetaMethod::Method but QMetaMethod::Signal. This looks not
consistent to me. 


In this example the assert fails:


#include <QObject>
#include <QMetaMethod>

class A : public QObject
{
	Q_OBJECT

public:
	A(int) { Q_ASSERT(metaObject()->method(0).methodType() == QMetaMethod::Method); }

	Q_INVOKABLE void foo() {}
}; 


Peter
-- 
Computer Bild Tarifsieger! GMX FreeDSL - Telefonanschluss + DSL
für nur 17,95 ¿/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a



More information about the Qt4-feedback mailing list