[Qt-creator] Problems console application and Q_OBJECT
Petric Frank
pfrank at gmx.de
Wed May 13 01:06:04 CEST 2009
Hello,
i try to create a console application under Windows.
The problem is that it does not create/update the moc_* files whenver a slot
have been added.
If i manually execute qmake and mingw32_make then i get the files
created/updated.
Environment is WinXP (SP3) + QtCreator 2009.01 (Opensource edition)
(The 2009.02 edition is unusable here because of the GUI delays/hangs)
The code looks like (stripped down):
main.c
int main (.....)
{
QConsoleApplicaton a;
MyObject obj;
return a.exec ();
}
myobject.h:
#include <QObject>
class MyObject : public QObject
{
Q_OBJECT
public:
MyObject (QObject * = 0);
public slots:
void method ();
...
};
Any hints ?
regards
Petric
More information about the Qt-creator-old
mailing list