设置QTextEdit的行高和行间距
来源:互联网 发布:linux的认识与理解 编辑:程序博客网 时间:2024/06/17 14:25
设置QTextEdit的行高
QTextCursor textCursor = ui->textEdit->textCursor(); QTextBlockFormat textBlockFormat; textBlockFormat.setLineHeight(40, QTextBlockFormat::FixedHeight);//设置固定行高 textCursor.setBlockFormat(textBlockFormat); ui->textEdit->setTextCursor(textCursor);
设置QTextEdit的行间距
QTextCursor textCursor = ui->textEdit->textCursor(); QTextBlockFormat textBlockFormat; textBlockFormat.setBottomMargin(10); textCursor.setBlockFormat(textBlockFormat); ui->textEdit->setTextCursor(textCursor);
阅读全文
0 0
- 设置QTextEdit的行高和行间距
- Qt QTextEdit设置行间距和段间距
- Android如何设置TextView的行间距、行高。
- Android设置TextView的行间距、行高
- Android如何设置TextView的行间距、行高。
- Android如何设置TextView的行间距、行高
- Android如何设置TextView的行间距、行高。
- Android如何设置TextView的行间距、行高。
- Android如何设置TextView的行间距、行高
- TextView设置行间距、行高
- 设置UITextView和UILabel的行间距
- Android-TextView设置行间距与行高。
- Android 设置文字text 行间距、行高、缩进
- UILabel设置行间距同时要计算得到行高的最简单的方法
- 设置多行label的行间距
- 设置TextView的行间距
- 设置textView的行间距
- 设置textView的行间距
- arm添加开机自启动脚本
- android保活进程总结--双进程保活策略
- SAS中的summary过程简介
- 【LAMP环境搭建】访问日志不记录静态、访问日志切割和静态元素过期时间
- net windows服务
- 设置QTextEdit的行高和行间距
- 阿里云应用配置管理产品ACM 发布4.1.0版本
- hbase系列-hbase导入导出
- 逆向工程--苹果移动端app逆向分析技术(一)
- Ios 让你的UITabbar上的按钮动起来
- UIView的layoutSubviews、layoutIfNeeded、setNeedsLayout区别和联系
- 前端js比较好的书
- Springmvc+uploadify实现文件上传
- 在cmd下进入写C语言