当前位置:网站首页>在QML中加载不同字体
在QML中加载不同字体
2022-07-02 03:03:00 【Fu_Lin_】
之前加载不同的字体都是通过Qt代码设置,如下
QFontDatabase::addApplicationFont("XXXXXX/DroidSansFallback.ttf")
后面发现很多时候都不太起作用, 如果加载一个字体还好一点,加载多个好像就不起作用,后面翻阅文档,发现有专门对应Qml字体的组件FontLoader,FontLoader的说明FontLoader可以通过名字、本地路径、网络url路径三种方式加载字体。
//通过名字,加载系统安装的字体
FontLoader {
id: fixedFont; name: "Courier" }
边栏推荐
- [staff] pitch representation (treble clef | C3 60 ~ B3 71 pitch representation | C4 72 pitch representation | C5 84 pitch representation)
- STM32__ 05 - PWM controlled DC motor
- Face++ realizes face detection in the way of flow
- [JS reverse series] analysis of a customs publicity platform
- How to create an instance of the control defined in SAP ui5 XML view at runtime?
- 寻找重复数[抽象二分/快慢指针/二进制枚举]
- Verilog 避免 Latch
- ZABBIX API creates hosts in batches according to the host information in Excel files
- 【无标题】
- How to run oddish successfully from 0?
猜你喜欢

Missing numbers from 0 to n-1 (simple difficulty)

批量检测url是否存在cdn—高准确率

2022-2028 global wood vacuum coating machine industry research and trend analysis report

Feature query of hypergraph iserver rest Service
![[staff] pitch representation (bass clef | C1 36 note pitch representation | C2 48 note pitch representation | C3 60 note pitch representation)](/img/98/956d8abbccceb1aae47e25825bc63d.jpg)
[staff] pitch representation (bass clef | C1 36 note pitch representation | C2 48 note pitch representation | C3 60 note pitch representation)

SAML2.0 笔记(一)

LeetCode刷题(十)——顺序刷题46至50

Design details of SAP e-commerce cloud footernavigationcomponent

Ten minutes will take you in-depth understanding of multithreading - multithreaded teamwork: synchronous control

Delphi xe10.4 installing alphacontrols15.12
随机推荐
[untitled]
A list of job levels and salaries in common Internet companies. Those who have conditions must enter big factories. The salary is really high
Websocket + spingboot realize code scanning login
表单自定义校验规则
32, 64, 128 bit system
PMP personal sprint preparation experience
GB/T-2423.xx 环境试验文件,整理包括了最新的文件里面
[learn C and fly] 1day Chapter 2 (exercise 2.2 find the temperature of Fahrenheit corresponding to 100 ° f)
Design details of SAP e-commerce cloud footernavigationcomponent
Cache processing scheme in high concurrency scenario
Gradle 笔记
Systemserver service and servicemanager service analysis
What kind of good and cost-effective Bluetooth sports headset to buy
Mmsegmentation series training and reasoning their own data set (3)
How to develop digital collections? How to develop your own digital collections
QT implementation interface jump
Soul app released the annual report on generation Z behavior: nearly 20% of young people love shopping in the vegetable market
Redis set command line operation (intersection, union and difference, random reading, etc.)
2022-2028 global deep sea generator controller industry research and trend analysis report
Qualcomm platform WiFi -- Native crash caused by WiFi