try to fix font name not show issue.
This commit is contained in:
parent
de6c1a0a6b
commit
8e9375c7ac
@ -94,8 +94,9 @@ void NameCreater::loadFont(const QByteArray& fontdata){
|
|||||||
version_font.setPixelSize(12);
|
version_font.setPixelSize(12);
|
||||||
|
|
||||||
//ui.tital_label->setFont(tital_font);
|
//ui.tital_label->setFont(tital_font);
|
||||||
|
QString fontName = QString::fromUtf8(family_list.at(0).toUtf8());
|
||||||
ui.version_label->setFont(version_font);
|
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"));
|
QList<QLabel*> titals = findChildren<QLabel*>(QRegularExpression("tital_label"));
|
||||||
foreach(auto tital, titals) {
|
foreach(auto tital, titals) {
|
||||||
|
|||||||
@ -55,7 +55,7 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="QtSettings">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="QtSettings">
|
||||||
<QtInstall>5.15.2_msvc2019_64</QtInstall>
|
<QtInstall>5.15.2_msvc2019_64</QtInstall>
|
||||||
<QtModules>core;gui;widgets</QtModules>
|
<QtModules>core;gui;widgets;network</QtModules>
|
||||||
<QtBuildConfig>debug</QtBuildConfig>
|
<QtBuildConfig>debug</QtBuildConfig>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|Win32'" Label="QtSettings">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|Win32'" Label="QtSettings">
|
||||||
@ -65,7 +65,7 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="QtSettings">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="QtSettings">
|
||||||
<QtInstall>$(DefaultQtVersion)</QtInstall>
|
<QtInstall>$(DefaultQtVersion)</QtInstall>
|
||||||
<QtModules>core;gui;widgets</QtModules>
|
<QtModules>core;gui;widgets;network</QtModules>
|
||||||
<QtBuildConfig>release</QtBuildConfig>
|
<QtBuildConfig>release</QtBuildConfig>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<Target Name="QtMsBuildNotFound" BeforeTargets="CustomBuild;ClCompile" Condition="!Exists('$(QtMsBuild)\qt.targets') or !Exists('$(QtMsBuild)\qt.props')">
|
<Target Name="QtMsBuildNotFound" BeforeTargets="CustomBuild;ClCompile" Condition="!Exists('$(QtMsBuild)\qt.targets') or !Exists('$(QtMsBuild)\qt.props')">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user