diff --git a/App/App.pro b/App/App.pro index 9a0f1e2..45f17f5 100644 --- a/App/App.pro +++ b/App/App.pro @@ -9,6 +9,9 @@ QT += serialport QT += quickwidgets QT += quick QT += qml +QT += opengl +QT += sql +QT += svg greaterThan(QT_MAJOR_VERSION, 4): QT += widgets diff --git a/App/mainwindow.cpp b/App/mainwindow.cpp index c18f659..88b62d9 100644 --- a/App/mainwindow.cpp +++ b/App/mainwindow.cpp @@ -15,8 +15,6 @@ MainWindow::MainWindow(QWidget *parent) qmlDir->mkdir("./qml");//如果文件夹不存在就新建 - - setFocusPolicy(Qt::StrongFocus); //ui initial @@ -212,6 +210,9 @@ void MainWindow::mousePressEvent(QMouseEvent* event) LatLng.SetLat(map->currentMousePosition().Lat()); LatLng.SetLng(map->currentMousePosition().Lng()); + + + //qDebug() << LatLng.Lat() << LatLng.Lng(); }