From 3ee01347dd6e7432037d584798f859ec1b864e44 Mon Sep 17 00:00:00 2001 From: Company Date: Wed, 29 Apr 2020 18:49:13 +0800 Subject: [PATCH] use qt5.14.2 --- App/App.pro | 3 +++ App/mainwindow.cpp | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) 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(); }