try to fix font name not show issue.

This commit is contained in:
shouchih_chen 2024-07-03 22:31:37 +08:00
parent de6c1a0a6b
commit 8e9375c7ac
2 changed files with 4 additions and 3 deletions

View File

@ -94,8 +94,9 @@ void NameCreater::loadFont(const QByteArray& fontdata){
version_font.setPixelSize(12);
//ui.tital_label->setFont(tital_font);
QString fontName = QString::fromUtf8(family_list.at(0).toUtf8());
ui.version_label->setFont(version_font);
ui.version_label->setText(QString(VERSION).append("/cht font:").append(family_list.at(0)));
ui.version_label->setText(QString(VERSION).append("/cht font:")+fontName);
QList<QLabel*> titals = findChildren<QLabel*>(QRegularExpression("tital_label"));
foreach(auto tital, titals) {

View File

@ -55,7 +55,7 @@
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="QtSettings">
<QtInstall>5.15.2_msvc2019_64</QtInstall>
<QtModules>core;gui;widgets</QtModules>
<QtModules>core;gui;widgets;network</QtModules>
<QtBuildConfig>debug</QtBuildConfig>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|Win32'" Label="QtSettings">
@ -65,7 +65,7 @@
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="QtSettings">
<QtInstall>$(DefaultQtVersion)</QtInstall>
<QtModules>core;gui;widgets</QtModules>
<QtModules>core;gui;widgets;network</QtModules>
<QtBuildConfig>release</QtBuildConfig>
</PropertyGroup>
<Target Name="QtMsBuildNotFound" BeforeTargets="CustomBuild;ClCompile" Condition="!Exists('$(QtMsBuild)\qt.targets') or !Exists('$(QtMsBuild)\qt.props')">