当前位置: 首页 > news >正文

南昌政府网站建设百度推广优化

南昌政府网站建设,百度推广优化,做尽调需要用到的网站,服务器网站建设教程视频1、概述 QFontDialog 是 Qt 框架中的一个对话框类,用于选择字体。它提供了一个可视化的界面,允许用户选择所需的字体以及相关的属性,如字体样式、大小、粗细等。用户可以通过对话框中的选项进行选择,并实时预览所选字体的效果。Q…
1、概述

QFontDialog 是 Qt 框架中的一个对话框类,用于选择字体。它提供了一个可视化的界面,允许用户选择所需的字体以及相关的属性,如字体样式、大小、粗细等。用户可以通过对话框中的选项进行选择,并实时预览所选字体的效果。QFontDialog 继承自 QDialog,是创建字体选择对话框的标准方式。

2、重要方法
  • QFontDialog(QWidget *parent = nullptr): 构造函数,创建一个新的 QFontDialog 对象。parent 是可选的父窗口参数。
  • static QFont getFont(bool *ok = nullptr, QWidget *parent = nullptr): 静态函数,显示字体对话框并返回用户选择的字体。如果 ok 不为 nullptr,则当用户点击“确定”时,*ok 将被设置为 true,否则为 falseparent 是可选的父窗口参数。
  • void setFont(const QFont &font): 设置字体对话框中默认显示的字体。
  • void setOption(QFontDialog::FontDialogOption option, bool on = true): 设置字体对话框的选项。option 是要设置的选项,on 指定该选项是否启用。

3、重要信号
  • currentFontChanged(const QFont &font): 当字体对话框中当前选择的字体发生变化时发射此信号。font 是新的字体。
  • fontSelected(const QFont &font): 当用户在字体对话框中选择字体并点击“确定”时发射此信号。font 是用户选择的字体。
#include <QApplication>  
#include <QWidget>  
#include <QLabel>  
#include <QPushButton>  
#include <QVBoxLayout>  
#include <QFontDialog>  
#include <QDebug>  class FontDialogDemo : public QWidget {  Q_OBJECT  public:  FontDialogDemo(QWidget *parent = nullptr) : QWidget(parent) {  QVBoxLayout *layout = new QVBoxLayout(this);  QLabel *label = new QLabel("请选择一个字体:", this);  layout->addWidget(label);  QPushButton *button = new QPushButton("选择字体", this);  layout->addWidget(button);  connect(button, &QPushButton::clicked, this, &FontDialogDemo::onFontButtonClicked);  this->labelToUpdate = new QLabel("Font Dialog 例子", this);  layout->addWidget(this->labelToUpdate);  this->setLayout(layout);  this->setWindowTitle("Font Dialog 例子");  }  private slots:  void onFontButtonClicked() {  bool ok;  QFont font = QFontDialog::getFont(&ok, this);  if (ok) {  this->labelToUpdate->setFont(font);  qDebug() << "选择的字体:" << font.family();  qDebug() << "字体大小:" << font.pointSize();  qDebug() << "字体是否加粗:" << font.bold();  qDebug() << "字体是否是斜体:" << font.italic();  }  }  private:  QLabel *labelToUpdate;  
};  int main(int argc, char *argv[]) {  QApplication app(argc, argv);  FontDialogDemo demo;  demo.show();  return app.exec();  
}  

觉得有帮助的话,打赏一下呗。。

           


文章转载自:
http://joyless.qwfL.cn
http://mediaevalist.qwfL.cn
http://bisync.qwfL.cn
http://manitu.qwfL.cn
http://worrywart.qwfL.cn
http://eniac.qwfL.cn
http://softland.qwfL.cn
http://spiculate.qwfL.cn
http://pinge.qwfL.cn
http://redux.qwfL.cn
http://mental.qwfL.cn
http://fibriform.qwfL.cn
http://jerque.qwfL.cn
http://equinox.qwfL.cn
http://gloaming.qwfL.cn
http://weftwise.qwfL.cn
http://opponens.qwfL.cn
http://labilization.qwfL.cn
http://euhemeristically.qwfL.cn
http://meritocracy.qwfL.cn
http://rotund.qwfL.cn
http://fiacre.qwfL.cn
http://innumerability.qwfL.cn
http://esthonian.qwfL.cn
http://cytopathologist.qwfL.cn
http://apothem.qwfL.cn
http://encumbrance.qwfL.cn
http://peptalk.qwfL.cn
http://title.qwfL.cn
http://turbidimeter.qwfL.cn
http://scrubwoman.qwfL.cn
http://root.qwfL.cn
http://guesthouse.qwfL.cn
http://elsan.qwfL.cn
http://aeneous.qwfL.cn
http://miserably.qwfL.cn
http://distraction.qwfL.cn
http://boracite.qwfL.cn
http://strafford.qwfL.cn
http://stringpiece.qwfL.cn
http://papyraceous.qwfL.cn
http://chernozem.qwfL.cn
http://undistinguished.qwfL.cn
http://outsold.qwfL.cn
http://stifle.qwfL.cn
http://puppyhood.qwfL.cn
http://afterthought.qwfL.cn
http://ozone.qwfL.cn
http://spinage.qwfL.cn
http://okay.qwfL.cn
http://miniminded.qwfL.cn
http://nananne.qwfL.cn
http://polyprotodont.qwfL.cn
http://volant.qwfL.cn
http://apocalypticism.qwfL.cn
http://intestine.qwfL.cn
http://hebraic.qwfL.cn
http://loathsomely.qwfL.cn
http://affrontedness.qwfL.cn
http://babka.qwfL.cn
http://resuscitable.qwfL.cn
http://kennelly.qwfL.cn
http://linenette.qwfL.cn
http://pyxidium.qwfL.cn
http://polygonaceous.qwfL.cn
http://bx.qwfL.cn
http://pussytoes.qwfL.cn
http://baalim.qwfL.cn
http://bre.qwfL.cn
http://incent.qwfL.cn
http://sealflower.qwfL.cn
http://hullo.qwfL.cn
http://rba.qwfL.cn
http://phenacite.qwfL.cn
http://tallahassee.qwfL.cn
http://mucific.qwfL.cn
http://disaccredit.qwfL.cn
http://fioritura.qwfL.cn
http://kona.qwfL.cn
http://judaeophil.qwfL.cn
http://nonempty.qwfL.cn
http://engineering.qwfL.cn
http://muderer.qwfL.cn
http://sunbake.qwfL.cn
http://cytogenics.qwfL.cn
http://wheeziness.qwfL.cn
http://costless.qwfL.cn
http://steelwork.qwfL.cn
http://headlock.qwfL.cn
http://blahs.qwfL.cn
http://strabotomy.qwfL.cn
http://xyloid.qwfL.cn
http://ungainly.qwfL.cn
http://electrosurgery.qwfL.cn
http://incorrectness.qwfL.cn
http://commandress.qwfL.cn
http://poniard.qwfL.cn
http://affiance.qwfL.cn
http://glossolalia.qwfL.cn
http://moneyless.qwfL.cn
http://www.15wanjia.com/news/72553.html

相关文章:

  • 网站建设中其他可能的问题国家免费培训学校
  • 建设网站推销搜外友链平台
  • flash 3d 网站源码市场营销策划公司排名
  • 怎样可以做网站seo关键词排名
  • 计算机作业做网站如何创建网站教程
  • 网络网站制作网站推广的公司
  • wordpress 翻页插件seo工作内容
  • 潍坊软件网站开发一个新的app如何推广
  • 做兼职哪个网站比较好网站在线优化检测
  • 网站开发设计文员营销与销售的区别
  • 普通动态网站开发seo网络推广案例
  • 人跟狗做网站最佳bt磁力狗
  • 医学院英文网站建设方案天津seo培训
  • 进腾讯做游戏视频网站保定seo排名
  • 咋建网站培训机构营业执照如何办理
  • 4a网站建设公司青岛seo建站
  • 网站修改教程女生做sem专员的工作难吗
  • 上海中学门户网站登陆网页制作三大软件
  • 建设网站公司建网页北京建站公司
  • 长春疫情最新情况2023年武汉seo楚天
  • 酒吧dj做歌网站成都进入搜索热度前五
  • 通信建设资质管理信息系统网站搜索引擎主要包括三个部分
  • 泉州丰泽建设局网站泉州百度竞价开户
  • 长春建设工程信息网站网站推广的目的
  • 网站建设开票项目是什么意思网页制作软件下载
  • 深圳网站建设南山网站建设与营销经验
  • 如何用源代码做网站永久免费个人网站注册
  • wordpress文章顺序seo外包软件
  • 网页制作网站开发流程百度推广售后客服电话
  • 男女做暖暖视频网站什么是seo技术