|
|
2010-05-18
, 20:43
|
|
Posts: 190 |
Thanked: 129 times |
Joined on Mar 2010
@ Bavaria, Germany
|
#2
|
CONFIG += mobility MOBILITY += location
|
|
2010-05-18
, 20:49
|
|
Posts: 1,086 |
Thanked: 2,964 times |
Joined on Jan 2010
|
#3
|
| The Following User Says Thank You to kojacker For This Useful Post: | ||
|
|
2010-05-18
, 20:57
|
|
Posts: 124 |
Thanked: 10 times |
Joined on Jan 2007
@ Italy
|
#4
|
Did you add the following to your .pro file?
Edit:Code:CONFIG += mobility MOBILITY += location
Ooops, the error message means you have declared positionUpdated() in your header but didn't implement it in the .cpp (or it has a different signature).

void positionUpdated(QGeoPositionInfo &info);
void positionUpdated(QGeoPositionInfo &info)
{
qDebug() << "Position updated:" << info;
}
|
|
2010-05-18
, 21:15
|
|
Posts: 124 |
Thanked: 10 times |
Joined on Jan 2007
@ Italy
|
#6
|
Either set the proper namespace or keep the QtMobility:: class specifier.
using namespace QtMobility;
|
|
2010-05-18
, 21:24
|
|
Posts: 190 |
Thanked: 129 times |
Joined on Mar 2010
@ Bavaria, Germany
|
#7
|
.pro file seems to be ok!
about positionUpdated():
Code:void positionUpdated(QGeoPositionInfo &info);so what?Code:void positionUpdated(QGeoPositionInfo &info) { qDebug() << "Position updated:" << info; }
void MainWindow::positionUpdated(QGeoPositionInfo &info)
{
qDebug() << "Position updated:" << info;
}
|
|
2010-05-18
, 21:25
|
|
Posts: 726 |
Thanked: 345 times |
Joined on Apr 2010
@ Sweden
|
#8
|
void YourClass::positionUpdated() { ...}
|
|
2010-05-18
, 21:39
|
|
Posts: 124 |
Thanked: 10 times |
Joined on Jan 2007
@ Italy
|
#9
|



|
|
2010-05-18
, 21:43
|
|
Posts: 726 |
Thanked: 345 times |
Joined on Apr 2010
@ Sweden
|
#10
|
everything seems to work fine using generic qt classes, but something wrong happens when i try to use qtmobility classes
I'm trying to use QGeoPositionInfo but:
what's wrong? is not qtmobility already embedded in nokia qt sdk?
i hope you can help me!!
thanks