Why are you trying to put your class into the Qt Mobility namespace? Did you perhaps intend this:
#ifndef QGEOPOSITIONINFOSOURCELINUX_H
#define QGEOPOSITIONINFOSOURCELINUX_H
#include "qgeopositioninfosource.h"
QTM_USE_NAMESPACE
// ^^^^^^^^^^^^^^ this
class QGeoPositionInfoSourceLinux : public QGeoPositionInfoSource
{
...
};
#endif
#ifndef QGEOPOSITIONINFOSOURCELINUX_H
#define QGEOPOSITIONINFOSOURCELINUX_H
#include "qgeopositioninfosource.h"
QTM_USE_NAMESPACE
// ^^^^^^^^^^^^^^ this
class QGeoPositionInfoSourceLinux : public QGeoPositionInfoSource
{
...
};
#endif
To copy to clipboard, switch view to plain text mode
as described here. Is Qt Mobility enabled in your Pro file?
Bookmarks