第5章Qt5主窗体..pptVIP

  • 16
  • 0
  • 约1.54万字
  • 约 49页
  • 2016-12-19 发布于重庆
  • 举报
5.4 Qt 5文本编辑功能 实现文本编辑的具体操作步骤如下。 (1)在头文件中添加“private:”变量: QLabel *fontLabel1; //字体设置项 QFontComboBox *fontComboBox; QLabel *fontLabel2; QComboBox *sizeComboBox; QToolButton *boldBtn; QToolButton *italicBtn; QToolButton *underlineBtn; QToolButton *colorBtn; ? QToolBar *fontToolBar; //字体工具栏 5.4 Qt 5文本编辑功能 (2)在头文件中添加“protected slots:”变量: void ShowFontComboBox(QString comboStr); void ShowSizeSpinBox(QString spinValue); void ShowBoldBtn(); void ShowItalicBtn(); void ShowUnderlineBtn(); void ShowColorBtn(); void ShowCurrentFormatChanged(c

文档评论(0)

1亿VIP精品文档

相关文档