hello,
I'm experimenting with QT SDK with following example.
http://doc.qt.nokia.com/qtcreator-2....e-example.html
It works on simulator and in real device (N97) as expected.
My problem comes valid when I try to add a new class into project. After many experiments I end up adding simplest possible QObject derived class via Creator wizard "Add new"->c++->c++ class.
c/p headerfie.
#ifndef MYTESTCLASS_H
#define MYTESTCLASS_H
#include <QObject>
class MyTestClass : public QObject
{
Q_OBJECT
public:
explicit MyTestClass(QObject *parent = 0);
signals:
public slots:
};
#endif // MYTESTCLASS_H
As soon I declare this class in my existing BatteryIndicator class, Symbian build starts to fail in "rebuild all"
(simulator build works)
..
#include "mytestclass.h"
..
private:
MyTestClass testclass;
....
/NokiaQTSDK/Omat/BatteryIndicator/batteryindicator.cpp:6: error: undefined reference to `MyTestClass::MyTestClass(QObject*)'
/NokiaQTSDK/Omat/BatteryIndicator/batteryindicator.cpp:6: error: undefined reference to `MyTestClass::MyTestClass(QObject*)'
/NokiaQTSDK/Symbian/SDK/EPOC32/BUILD/NokiaQTSDK/Omat/BatteryIndicator/BATTERYINDICATOR_0XEB0275F9/GCCE/UDEB/batteryindicator.o:: In function `~MyTestClass':
/NokiaQTSDK/Omat/BatteryIndicator/mytestclass.h:7: error: undefined reference to `vtable for MyTestClass'
I found a post http://bugreports.qt.nokia.com/browse/QTSDK-98
that steps I did already.
What I might miss here, I noticed that there have been similar kind of threads on this forum but couldnt find a solution for my case though
I appreciate any help.
thanks
ari


. I needed to run qmake separately each time I added new class. When I created initial project containing only one class qmake is run by the Creator by default but later this does not seem happen. Qmake needs to be run either via command prompt or via build-menu. Cleaning (all) has no effect, i.e it does not force Creator for running qmake but qmake needs to run explicitly. Simulator build seems working diffrently requiring no manual qmake in this phase.


