Fix issue 4: Fix background color of solid pattern

For a solid fill, Excel reverses the role of foreground and
background colours
This commit is contained in:
Debao Zhang
2013-10-14 13:17:53 +08:00
parent 7748184ba1
commit 9845d8f2ee
3 changed files with 21 additions and 2 deletions
+4
View File
@@ -46,6 +46,10 @@ int main()
format5->setNumberFormat(22);
xlsx.write("A5", QDate(2013, 8, 29), format5);
QXlsx::Format *format6 = xlsx.createFormat();
format6->setPatternBackgroundColor(QColor(Qt::gray));
xlsx.write("A6", "Background color: green", format6);
xlsx.saveAs(DATA_PATH"TestStyle.xlsx");
return 0;
}