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
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to