3 Star 3 Fork 3

freewu / QtMap

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
map_widget.h 848 Bytes
一键复制 编辑 原始数据 按行查看 历史
freewu32 提交于 2016-11-04 18:09 . 添加项目
#ifndef WIDGET_H
#define WIDGET_H
#include <QWidget>
#include <QOpenGLWidget>
#include <QPainterPath>
#include "map_configure.h"
#include "map_loader.h"
class MapWidget;
class MapLoader;
class MapCallBack{
public:
virtual void initSuccess(MapWidget* mapWidget);
virtual void initError();
};
class MapWidget : public QOpenGLWidget
{
Q_OBJECT
public:
MapWidget(QWidget *parent = 0);
~MapWidget();
static MapConfigure* map_configure;
//得到地图加载器
MapLoader* GetMapLoader();
//显示地图
void show();
static std::list<QPainterPath>* pathList;
void setMapCallBack(MapCallBack mapCallBack);
protected:
void paintEvent(QPaintEvent *e);
void resizeGL(int w,int h);
MapCallBack mapCallBack;
private:
};
#endif // WIDGET_H
C++
1
https://gitee.com/free1234566789/QtMap.git
git@gitee.com:free1234566789/QtMap.git
free1234566789
QtMap
QtMap
master

搜索帮助