From ec0f6989d17fab2d1518c20e9a315bb547e11679 Mon Sep 17 00:00:00 2001 From: taynpg Date: Mon, 1 Dec 2025 08:40:17 +0800 Subject: [PATCH] =?UTF-8?q?use=EF=BC=9Aclang=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/settings.json | 2 +- MainWidget.cpp | 2 +- main.cpp | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 9dc4bae..5625433 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -24,7 +24,7 @@ "-Wno-dev" ], "cmake.configureSettings": { - "CMAKE_PREFIX_PATH": "C:/Qt/Qt5.12.12/5.12.12/msvc2017_64" + "CMAKE_PREFIX_PATH": "C:/Qt/Qt6" }, "cmake.options.statusBarVisibility": "visible", "cmake.generator": "Ninja", diff --git a/MainWidget.cpp b/MainWidget.cpp index 21d85db..59472ff 100644 --- a/MainWidget.cpp +++ b/MainWidget.cpp @@ -1107,7 +1107,7 @@ if (re.match("123-45-6789").hasMatch()) { qDebug() << "Valid SSN"; } )"; - //textBrowser->setMarkdown(markdownContent); + textBrowser->setMarkdown(markdownContent); textBrowser->setText(markdownContent); layout->addWidget(textBrowser); dialog->exec(); diff --git a/main.cpp b/main.cpp index b8992ec..0a109c0 100644 --- a/main.cpp +++ b/main.cpp @@ -16,10 +16,10 @@ int main(int argc, char *argv[]) // a.setStyle("windows"); #endif - QFile file(":/QtTheme/theme/Flat/Light/Blue/Pink.qss"); - if (file.open(QFile::ReadOnly)) { - a.setStyleSheet(file.readAll()); - } + // QFile file(":/QtTheme/theme/Flat/Light/Blue/Pink.qss"); + // if (file.open(QFile::ReadOnly)) { + // a.setStyleSheet(file.readAll()); + // } #if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0)) QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);