Add documentation for the class Document.

Little api refactor
This commit is contained in:
Debao Zhang
2013-10-19 14:27:50 +08:00
parent d04a02e55c
commit f8ca19f14b
5 changed files with 139 additions and 25 deletions
+2 -1
View File
@@ -4,13 +4,14 @@ int main()
{
//Generate a simple xlsx file at first.
QXlsx::Document xlsx;
xlsx.setSheetName("First Sheet");
xlsx.write("A1", "Hello Qt!");
xlsx.write("A2", 500);
xlsx.saveAs("first.xlsx");
//Read, edit, save
QXlsx::Document xlsx2("first.xlsx");
xlsx2.addWorksheet("Second");
xlsx2.addWorksheet("Second Sheet");
xlsx2.write("A1", "Hello Qt again!");
xlsx2.saveAs("second.xlsx");