Add cell alignment control

This commit is contained in:
Debao Zhang
2013-08-27 17:14:16 +08:00
parent a6bfe24986
commit f1632ee596
5 changed files with 229 additions and 2 deletions
+1
View File
@@ -17,6 +17,7 @@ int main()
QXlsx::Format *format1 = workbook.addFormat();
format1->setFontColor(QColor(Qt::red));
format1->setFontSize(15);
format1->setHorizontalAlignment(QXlsx::Format::AlignHCenter);
sheet->write("A1", "Hello Qt!", format1);
sheet->write("B3", 12345, format1);