内置的地图
QGCLocationPlugin文件夹中
头文件中:
//QGCMapEngine.h
class QGCTileSet(){
public:
QGCTileSet(){
clear();
}
QGCTileSet &operator+=(QGCTileSet &other){
tileX0+=other.tileX0;
...
return *this;
}
void clear(){
tileX0=0;
...
}
int tileX0;
int tileX1;
int tileY0;
int tileY1;
quint64 tileCount;
quint64 tileSize;
}
class QGCMapEngine:public QObject{
Q_OBJECT
public:
QGCMapEngine();
~QGCMapEngine();
void init();
void addTask(QGCMapTask *task);
...
extern QGCMapEngine* getQGCMapEngine();
extern void destroyMapEngine();
}
Q_PROPERTY
是一个宏,Q_PROPERTY()是一个宏,用来在一个类中声明一个属性pro