I have a really project to test some fonction on Mobility API
But I have a really strange error !

This is my code:
#include <QMainWindow>
#include <qmobilityglobal.h>
#include <QGeoPositionInfo>
#include <QGeoPositionInfoSource>
#include <QObject>

class MyClass : public QObject
{

Q_OBJECT
public:
MyClass(QObject *parent = 0)
: QObject(parent)
{
QGeoPositionInfoSource *source = QGeoPositionInfoSource::createDefaultSource(this);
if (source) {
connect(source, SIGNAL(positionUpdated(QGeoPositionInfo)),
this, SLOT(positionUpdated(QGeoPositionInfo)));
source->startUpdates();
}
}

public slots:
void positionUpdated(QGeoPositionInfo & info)
{
qDebug() << "Position updated:" << info;
}
};
this is the .pro file

QT += core gui
QT += core

TARGET = testgraphique
TEMPLATE = app


SOURCES += main.cpp\
mainwindow.cpp

HEADERS += mainwindow.h

FORMS += mainwindow.ui

CONFIG += mobility
MOBILITY = location

symbian {
TARGET.UID3 = 0xe62b586b
# TARGET.CAPABILITY +=
TARGET.EPOCSTACKSIZE = 0x14000
TARGET.EPOCHEAPSIZE = 0x020000 0x800000
}

unix:!symbian {
maemo5 {
target.path = /opt/usr/bin
} else {
target.path = /usr/local/bin
}
INSTALLS += target
}
And this are errors:
/home/ubis/QtSDK/works/testgraphique-build-maemo/../testgraphique/mainwindow.h:29: erreur : 'QGeoPositionInfo' has not been declared
/home/ubis/QtSDK/works/testgraphique-build-maemo/../testgraphique/mainwindow.h:20: erreur : 'QGeoPositionInfoSource' was not declared in this scope
/home/ubis/QtSDK/works/testgraphique-build-maemo/../testgraphique/mainwindow.h:20: erreur : 'source' was not declared in this scope
/home/ubis/QtSDK/works/testgraphique-build-maemo/../testgraphique/mainwindow.h:20: erreur : 'QGeoPositionInfoSource' is not a class or namespace
/home/ubis/QtSDK/works/testgraphique-build-maemo/../testgraphique/mainwindow.h:31: erreur : invalid use of incomplete type 'struct QDebug'
/home/ubis/QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim//usr/include/QtCore/qglobal.h:1654: erreur : forward declaration of 'struct QDebug'
Any help will be appreciated