当前位置:网站首页>QT compilation qtxlsx Library
QT compilation qtxlsx Library
2022-04-23 08:19:00 【Ott_ Glodon】
One 、QtXlsx Library compilation
Provide download package : Contains compiled Qt5.6.3 edition 、QtXlsx Source code and Perl5 Software installation package .
Download address
1、 download QtXlsx Source code
Address :QtXlsxWriter Download address
After downloading, unzip it to your own disk , The path should not contain spaces or special characters .

2、 install Perl5
Due to compilation QtXlsx Library needs Perl Script , So we must ensure that there is such an execution environment , Otherwise, an error will be reported , First cmd Enter the command line to check whether you have installed Perl5:

If not installed , Download it yourself perl5 Software installation .
3、 compile QtXlsx library

Use your own installation Qt open qtxlsx.pro, Then compile it .

4、 Usage method
Here, select the corresponding path according to the compilation :
- First, the project documents ( route :QtXlsxWriter-master\src\xlsx) In the file ( See the following picture for details ) Copy to the new QtXlsx In the folder , The final will be QtXlsx Folder copy to Qt Installation directory , For example, my copy to :D:\Qt\Qt5.7.0\5.7\msvc2013_64\include
- Next, copy lib Under the folder Qt5Xlsxd.lib、Qt5Xlsx.lib、Qt5Xlsx.prl、Qt5Xlsxd.prl4 A file to your Qt Of lib Next :D:\Qt\Qt5.7.0\5.7\msvc2013_64\lib
- Copy lib Under folder Qt5Xlsx.dll、Qt5Xlsxd.dll Library files to your Qt Under the library path D:\Qt\Qt5.7.0\5.7\msvc2013_64\bin
- Will build the mkspecs\modules-inst\qt_lib_xlsx.pri and qt_lib_xlsx_private.pri To your Qt Under module D:\Qt\Qt5.7.0\5.7\msvc2013_64\mkspecs\modules
Be careful : Many people on the Internet say they will mkspecs\modules\qt_lib_xlsx.pri copy to msvc2017\mkspecs\modules, But in this way, the result module cannot be loaded into the project , It should be under the build directory mkspecs\modules-inst\qt_lib_xlsx.pri and qt_lib_xlsx_private.pri To msvc2015\mkspecs\modules)
Come down and use Qt Conduct excel Operating the , Just pay attention to :
- When using, you need to include header files #include
- stay .pro Need to add :QT += xlsx
- After finishing , Better first qmake Reconstruction Engineering , Otherwise, you will be prompted that you cannot connect to the library ;
Then you can run your own QtXlsx Project .
版权声明
本文为[Ott_ Glodon]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230714487238.html
边栏推荐
- How to read books and papers
- The third divisor of leetcode simple question
- clang 如何产生汇编文件
- 数论求a^b(a,b为1e12级别)的因子之和
- 输入/输出系统
- AAAI 2022 recruit speakers!!
- [effective go Chinese translation] part I
- Jetson Xavier NX (3) bazel mediapipe installation
- C language learning record -- use and analysis of string function (2)
- Qt读写XML文件
猜你喜欢

WordPress love navigation theme 1.1.3 simple atmosphere website navigation source code website navigation source code

分布式消息中间件框架选型-数字化架构设计(7)

The simple problem of leetcode is to calculate the numerical sum of strings

One click cleanup of pycharm and jupyter cache files under the project

一键清理项目下pycharm和Jupyter缓存文件

利用Js实现一个千分位

岛屿的个数

There are some problems when using numeric type to query string type fields in MySQL

Qt读写XML文件

An article understands variable lifting
随机推荐
js将树形结构数据转为一维数组数据
一款拥有漂亮外表的Typecho简洁主题_Scarfskin 源码下载
使用JWT生成与解析Token
一个没啥L用,但可以装X的IDEA插件
剑指offer day24 数学(中等)
岛屿的个数
Data deletion and modification (MySQL)
Talk about the basic but not simple stock data
Common regular expressions
An idea plug-in that doesn't work, but can install X
396. Rotate Function
常用正则表达式
在MATLAB中快速画圆(给出圆心坐标和半径就能直接画的那种)
Online app resource download website source code
LeetCode简单题之计算字符串的数字和
Find the largest of 3 strings (no more than 20 characters per string).
npm安装yarn
C语言学习记录——삼십팔 字符串函数使用和剖析(2)
Why are there 1px problems? How?
Green apple film and television system source code film and television aggregation film and television navigation film and television on demand website source code