QtQuick下 可以通過Qt.fontFamilies()來枚舉系統(tǒng)所有的字體
我們字體列表就可以使用這個, 將常用的字體也羅列出來
image.png
然后我們制作一個下拉選擇的按鈕
image.png
點擊的時候 箭頭圖片進行切換就行.
接下來需要給字體選擇做一個按鈕, 粗體 斜體 下劃線 刪除線
show.gif
聯(lián)系方式:
作者 | 鄭天佐 |
---|---|
278969898 | |
主頁 | http://www.camelstudio.cn/ |
郵箱 | camelsoft@163.com |
博客 | http://blog.csdn.net/zhengtianzuo06/ |
github | https://github.com/zhengtianzuo |
QQ群 | 199672080 |
捐贈
<img src="https://github.com/zhengtianzuo/zhengtianzuo.github.io/blob/master/weixin.jpg?raw=true" width="30%" height="30%" /> <img src="https://github.com/zhengtianzuo/zhengtianzuo.github.io/blob/master/zhifubao.jpg?raw=true" width="30%" height="30%" />