摘要: widget.h 1 #ifndef MAPWIDGET_H 2 #define MAPWIDGET_H 3 4 #include <QGraphicsView> 5 #include <QLabel> 6 #include <QMouseEvent> 7 8 class MapWidget : p 阅读全文
posted @ 2018-04-11 16:53 喵小喵~ 阅读(1199) 评论(0) 推荐(0)
摘要: fly.h 1 #ifndef FLY_H 2 #define FLY_H 3 #include <QObject> 4 #include <QPainter> 5 #include <QGraphicsScene> 6 #include <QGraphicsView> 7 #include <QG 阅读全文
posted @ 2018-04-11 14:26 喵小喵~ 阅读(665) 评论(0) 推荐(0)
摘要: modellex.h 1 #ifndef MODELEX_H 2 #define MODELEX_H 3 #include <QAbstractItemModel> 4 #include <QVector> 5 #include <QMap> 6 #include <QStringList> 7 # 阅读全文
posted @ 2018-04-11 13:28 喵小喵~ 阅读(3317) 评论(0) 推荐(0)
摘要: 1 #include "mainwindow.h" 2 #include 3 #include 4 #include 5 #include 6 7 #include 8 #include 9 #include 10 #include 11 #include 12 13 int main(int argc, char *argv[]) 14 { 15 ... 阅读全文
posted @ 2018-04-11 12:08 喵小喵~ 阅读(332) 评论(0) 推荐(0)
摘要: widget.h 1 #ifndef WIDGET_H 2 #define WIDGET_H 3 4 #include <QWidget> 5 #include <QPainter> 6 #include <QPen> 7 #include <QEvent> 8 9 namespace Ui { 1 阅读全文
posted @ 2018-04-11 11:36 喵小喵~ 阅读(232) 评论(0) 推荐(0)
摘要: dialog.h 1 #ifndef DIALOG_H 2 #define DIALOG_H 3 4 #include <QDialog> 5 #include <QLabel> 6 #include <QGridLayout> 7 #include <QMouseEvent> 8 #include 阅读全文
posted @ 2018-04-11 10:17 喵小喵~ 阅读(212) 评论(0) 推荐(0)