Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.4.0
-
None
-
54f0733e7df4134afbcf0a81ba39751f31c9b84d
Description
The following file does not compile; the moc-file declares
static const QMetaObject *qt_meta_extradata_MyObject[] = {
&NS::staticMetaObject,0
};
which is incorrect "staticMetaObject" belongs to the class, not the namespace.
#include <QObject>
namespace NS {
class A : public QObject
{
Q_OBJECT
};
};
class B : public QObject
{
Q_OBJECT
Q_PROPERTY(
NS::A* aProp
READ aProp
)
public:
NS::A * aProp() const
};