[Interest] moc not moccing
Graham Labdon
Graham.Labdon at avalonsciences.com
Mon May 19 13:17:17 CEST 2014
Hi
If I declare a class in a cpp file -
#include <QObject>
class NewTest : public QObject
{
Q_OBJECT
private slots:
void s1();
};
void NewTest::s1()
{
}
#include "NewTest.moc"
The moc compiler is not invoked
However, if I declare a constructor for NewTest it is
Can anyone explain why this is?
I am writing some unit tests and do not need the constructor.
Once the moc has been invoked I can remove the constructor and then everything works as expected
Thanks
More information about the Interest
mailing list