diff --git a/tool/comtool/main.cpp b/tool/comtool/main.cpp index 1e2fd8a..3213034 100644 --- a/tool/comtool/main.cpp +++ b/tool/comtool/main.cpp @@ -3,6 +3,9 @@ int main(int argc, char *argv[]) { +#if (QT_VERSION >= QT_VERSION_CHECK(5,14,0)) + QApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::Floor); +#endif QApplication a(argc, argv); a.setWindowIcon(QIcon(":/main.ico")); diff --git a/tool/netserver/main.cpp b/tool/netserver/main.cpp index 37024ba..9146383 100644 --- a/tool/netserver/main.cpp +++ b/tool/netserver/main.cpp @@ -3,6 +3,9 @@ int main(int argc, char *argv[]) { +#if (QT_VERSION >= QT_VERSION_CHECK(5,14,0)) + QApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::Floor); +#endif QApplication a(argc, argv); a.setWindowIcon(QIcon(":/main.ico")); diff --git a/tool/nettool/api/appconfig.cpp b/tool/nettool/api/appconfig.cpp index 482a87b..ed708c9 100644 --- a/tool/nettool/api/appconfig.cpp +++ b/tool/nettool/api/appconfig.cpp @@ -44,7 +44,7 @@ bool AppConfig::AutoSendUdpServer = false; int AppConfig::IntervalUdpServer = 1000; QString AppConfig::UdpListenIP = "127.0.0.1"; int AppConfig::UdpListenPort = 6000; -bool AppConfig::SelectAllUdpServer = false; +bool AppConfig::SelectAllUdpServer = true; bool AppConfig::HexSendWebClient = false; bool AppConfig::HexReceiveWebClient = false; @@ -53,7 +53,7 @@ bool AppConfig::DebugWebClient = false; bool AppConfig::AutoSendWebClient = false; int AppConfig::IntervalWebClient = 1000; QString AppConfig::WebServerIP = "ws://127.0.0.1"; -int AppConfig::WebServerPort = 6000; +int AppConfig::WebServerPort = 6001; bool AppConfig::HexSendWebServer = false; bool AppConfig::HexReceiveWebServer = false; @@ -62,7 +62,7 @@ bool AppConfig::DebugWebServer = false; bool AppConfig::AutoSendWebServer = false; int AppConfig::IntervalWebServer = 1000; QString AppConfig::WebListenIP = "127.0.0.1"; -int AppConfig::WebListenPort = 6000; +int AppConfig::WebListenPort = 6001; bool AppConfig::SelectAllWebServer = true; void AppConfig::readConfig() diff --git a/tool/nettool/main.cpp b/tool/nettool/main.cpp index 48ccc35..88e8645 100644 --- a/tool/nettool/main.cpp +++ b/tool/nettool/main.cpp @@ -3,6 +3,9 @@ int main(int argc, char *argv[]) { +#if (QT_VERSION >= QT_VERSION_CHECK(5,14,0)) + QApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::Floor); +#endif QApplication a(argc, argv); a.setWindowIcon(QIcon(":/main.ico"));