Long live QtXlsxWriter!
This commit is contained in:
Executable
+3
@@ -0,0 +1,3 @@
|
||||
TEMPLATE = subdirs
|
||||
SUBDIRS = hello
|
||||
|
||||
Executable
+5
@@ -0,0 +1,5 @@
|
||||
TARGET = hello
|
||||
|
||||
include(../../src/qtxlsxwriter.pri)
|
||||
|
||||
SOURCES += main.cpp
|
||||
Executable
+16
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user