QGeoRoutingManager:http ://apidocs.meego.com/1.0/qtmobility/qgeoroutingmanager-members.html
这个类没有构造函数。我忘记了为其指针分配内存的方法。
我做了:
QGeoRoutingManager *a = new QGeoRoutingManager ();
这导致错误:
calculateRoute.cpp:16: error: no matching function for call to ‘QtMobility::QGeoRoutingManager::QGeoRoutingManager()’
../../../../tarBalls/qt-mobility-opensource-src-1.2.0/install/include/QtLocation/qgeoroutingmanager.h:91: note: candidates are: QtMobility::QGeoRoutingManager::QGeoRoutingManager(const QtMobility::QGeoRoutingManager&)
根据错误消息“const QtMobility::QGeoRoutingManager&”,我应该在那里传递什么