Add default datetime format for workbook

This commit is contained in:
Debao Zhang
2013-10-16 09:58:42 +08:00
parent e19657945e
commit 895a30524d
5 changed files with 22 additions and 3 deletions
+1 -3
View File
@@ -42,9 +42,7 @@ int main()
xlsx.write(row, col, row+col);
xlsx.setColumn(8, 15, 5.0, format4);
QXlsx::Format *format5 = xlsx.createFormat();
format5->setNumberFormatIndex(22);
xlsx.write("A5", QDate(2013, 8, 29), format5);
xlsx.write("A5", QDate(2013, 8, 29));
QXlsx::Format *format6 = xlsx.createFormat();
format6->setPatternBackgroundColor(QColor(Qt::gray));