Update the readme file

This commit is contained in:
Debao Zhang
2013-09-11 14:47:25 +08:00
parent aebc0a12b7
commit 5817ebdbfd
+4 -6
View File
@@ -33,14 +33,12 @@ The package contains a **qtxlsx.pri** file that allows you to integrate the comp
* Then, using Qt Xlsx in your code * Then, using Qt Xlsx in your code
```cpp ```cpp
#include "xlsxworkbook.h" #include "xlsxdocument.h"
#include "xlsxworksheet.h"
int main() int main()
{ {
QXlsx::Workbook workbook; QXlsx::Document xlsx;
QXlsx::Worksheet *sheet = workbook.addWorksheet(); xlsx.write("A1", "Hello Qt!");
sheet->write("A1", "Hello Qt!"); xlsx.saveAs("Test.xlsx");
workbook.save("Test.xlsx");
return 0; return 0;
} }
``` ```