1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
#ifndef MAPWIDGET_H #define MAPWIDGET_H #include <QQuickWidget> class QResizeEvent; class QQuickItem; class MapWidget : public QQuickWidget { public: MapWidget(QWidget *parent = NULL); ~MapWidget(); static MapWidget *instance(); private: static MapWidget *m_instance; QQuickItem *m_rootItem; }; #endif // MAPWIDGET_H