From 28f143c5b3c735faa88f9789743729d8933404be Mon Sep 17 00:00:00 2001 From: Zhao Yuhang <2546789017@qq.com> Date: 周二, 19 12月 2023 19:40:17 +0800 Subject: [PATCH] add win32 raise window --- examples/mainwindow/main.cpp | 10 ---------- 1 files changed, 0 insertions(+), 10 deletions(-) diff --git a/examples/mainwindow/main.cpp b/examples/mainwindow/main.cpp index b0c9d25..9e86f81 100644 --- a/examples/mainwindow/main.cpp +++ b/examples/mainwindow/main.cpp @@ -1,6 +1,4 @@ #include <QtWidgets/QApplication> -#include <QtGui/QFont> -#include <QtCore/QDebug> #include "mainwindow.h" @@ -17,14 +15,6 @@ QGuiApplication::setHighDpiScaleFactorRoundingPolicy( Qt::HighDpiScaleFactorRoundingPolicy::PassThrough); QApplication a(argc, argv); - -#ifdef Q_OS_WINDOWS - a.setFont([]() { - QFont f(QStringLiteral("Microsoft YaHei UI")); - f.setPixelSize(15); - return f; - }()); -#endif MainWindow w; w.show(); -- Gitblit v1.9.1