Qt入门系列开发教程【对话框】QFontDialog字体对话框

文章目录

1.描述
2.公有函数
3.事件
4.静态函数

1.描述
通过景观台函数getFont创建的字体对话框
bool ok;
QFont font = QFontDialog::getFont(
&ok, QFont("Helvetica [Cronyx]", 10), this);
if (ok) {
// the user clicked OK and font is set to the font the user selected
} else {
// the user canceled the dialog; font is set to the initial
// value, in this case Helvetica [Cronyx], 10
}

对话框也可以

Qt入门系列开发教程【对话框】QFontDialog字体对话框最先出现在Python成神之路

版权声明:
作者:Zad
链接:https://www.techfm.club/p/24331.html
来源:TechFM
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
< <上一篇
下一篇>>