提交 9f2e8c39 编写于 作者: mahuifa's avatar mahuifa

修改XlsxDemo.md

上级 cb349894
......@@ -110,7 +110,7 @@ void Test7::on_pushButton_3_clicked()
// 设置字体加粗
Format format4;
format4.setFontBold(true);
xlsx.write(1, 6, "字体颜色", format4);
xlsx.write(1, 6, "字体加粗", format4);
qDebug() << xlsx.cellAt(1, 6)->format().fontBold(); // 获取当前单元格的字体是否加粗
// 设置字体特殊格式(上、下标)
......
......@@ -14,6 +14,7 @@
| Test4 | Qxlsx插入图表功能演示 |
| Test5 | Excel中插入、读取图片 |
| Test6 | QXlsx合并单元格、文本对齐 |
| Test7 | QXlsx设置字体格式、样式 |
......@@ -115,3 +116,15 @@
> 6. 在不修改其它内容情况下设置单元格垂直对齐。
![test6](XlsxDemo.assets/test6.gif)
### 1.7 Test7
> 1. 通过索引号设置数字格式
> 2. 设置自定义数字格式
> 3. 设置字体样式(包括:字体大小、斜体、删除线、颜色、加粗、上下标、下划线、轮廓、字体类型)
![image-20220712163106069](XlsxDemo.assets/image-20220712163106069.png)
![image-20220712163125370](XlsxDemo.assets/image-20220712163125370.png)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册