From ed5f9693b3cd7ddcdc746c4bb65dcd9cf7a8268b Mon Sep 17 00:00:00 2001 From: Sine Striker <trueful@163.com> Date: 周二, 19 12月 2023 15:09:49 +0800 Subject: [PATCH] Add window attributes --- 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