当前位置:网站首页>Load different fonts in QML
Load different fonts in QML
2022-07-02 03:07:00 【Fu_ Lin_】
The previous loading of different fonts is through Qt Code settings , as follows
QFontDatabase::addApplicationFont("XXXXXX/DroidSansFallback.ttf")
Later, I found that it didn't work very well , It's better to load a font , Loading more than one doesn't seem to work , Read the document later , It is found that there is a special correspondence Qml Components of fonts FontLoader
,FontLoader
Explanation FontLoader
Can pass name
、 The local path
、 The Internet url route
There are three ways to load fonts .
// By name , Load fonts installed in the system
FontLoader {
id: fixedFont; name: "Courier" }
边栏推荐
- Mathematical calculation in real mode addressing
- Leetcode question brushing (10) - sequential question brushing 46 to 50
- Docker安装canal、mysql进行简单测试与实现redis和mysql缓存一致性
- Unit · elementary C # learning notes
- PMP personal sprint preparation experience
- venn图取交集
- Verilog 时序控制
- The number one malware in January 2022: lokibot returned to the list, and emotet returned to the top
- [staff] pitch representation (treble clef | C3 60 ~ B3 71 pitch representation | C4 72 pitch representation | C5 84 pitch representation)
- Feature query of hypergraph iserver rest Service
猜你喜欢
STM32__05—PWM控制直流电机
JS <2>
JS introduction < 1 >
Which brand of running headphones is good? How many professional running headphones are recommended
buu_ re_ crackMe
verilog 并行块实现
Remote connection to MySQL under windows and Linux system
Feature query of hypergraph iserver rest Service
Multi threaded query, double efficiency
[staff] the direction of the symbol stem and the connecting line (the symbol stem faces | the symbol stem below the third line faces upward | the symbol stem above the third line faces downward | the
随机推荐
MSI announced that its motherboard products will cancel all paper accessories
实现一个自定义布局的扫码功能
自定义组件的 v-model
Realize the code scanning function of a custom layout
MongoDB非关系型数据库
MongoDB非關系型數據庫
【无标题】
[JVM] detailed description of the process of creating objects
PMP personal sprint preparation experience
QT environment generates dump to solve abnormal crash
Competition and adventure burr
C reflection practice
2022 hoisting machinery command examination paper and summary of hoisting machinery command examination
跟着CTF-wiki学pwn——ret2shellcode
Use the open source project [banner] to achieve the effect of rotating pictures (with dots)
ORA-01547、ORA-01194、ORA-01110
Gradle 笔记
[JSON] gson use and step on the pit
浅谈线程池相关配置
2022-2028 global deep sea generator controller industry research and trend analysis report