Update the readme file
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user