Long live QtXlsxWriter!

This commit is contained in:
Debao Zhang
2013-08-23 23:12:46 +08:00
commit 4ec93ecb41
34 changed files with 3074 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
TEMPLATE = subdirs
SUBDIRS = hello
+5
View File
@@ -0,0 +1,5 @@
TARGET = hello
include(../../src/qtxlsxwriter.pri)
SOURCES += main.cpp
+16
View File
@@ -0,0 +1,16 @@
#include <QtCore>
#include "xlsxworkbook.h"
#include "xlsxworksheet.h"
int main(int argc, char* argv[])
{
#ifdef Q_OS_MAC
QXlsx::Workbook workbook("../../../Test.xlsx");
#else
QXlsx::Workbook workbook("Test.xlsx");
#endif
QXlsx::Worksheet *sheet = workbook.addWorksheet();
sheet->write("A1", "Hello Qt!");
workbook.close();
return 0;
}