Qt Xlsx环境安装
-
Qt Xlsx 下载地址 :https://github.com/dbzhang800/QtXlsxWriter
-
下载QtXlsxWriter-master.zip
-
解压QtXlsxWriter-master.zip
-
用QT打开qtxlsx.pro
-
选择MSCV2017来构建
-
报错, 需要安装Perl
-
Perl下载地址:https://www.activestate.com/products/perl/downloads/
-
下载ActivePerl-5.28.msi
-
安装Perl
-
编译Qt xlsx
qmake
mingw32-make
mingw32-make installQXlsx::Document xlsx;
xlsx.write(“A1”, “Hello Qt!”);
xlsx.saveAs(“Test.xlsx”);