You can download the source code from https://bitbucket.org/MunteanuMarian/qmapwidget.
git clone https://bitbucket.org/MunteanuMarian/qmapwidget.git
How to use the widget?
#include <QApplication>
#include <QMainWindow>
#include <QMapWidget>
class MainWindow : public QMainWindow
{
QMapWidget * map;
public:
explicit MainWindow()
{
map = new QMapWidget(this);
setCentralWidget(map);
map->setFocus();
}
};
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
MainWindow w;
w.show();
return a.exec();
}
Sample application on Windows:
Download:
QMapWidgetTest.exe 12.9 MB (Qt included)
QMapWidgetTest.exe 30 KB
Sample application on Android:
Download:
QMapWidget.apk 7.63 MB
No comments:
Post a Comment