当前位置:网站首页>QT excel table read / write library - qtxlsx

QT excel table read / write library - qtxlsx

2022-06-25 15:07:00 Knowledge first

 Insert picture description here

One Project introduction

QtXlsx Is a new one 、 Read 、 write in Excel Document library . It doesn't need it. Microsoft Excel, Can be in Qt5 Used on any supported platform , Cross platform !

The project is MIT Open source license , The restrictions are relatively loose .
Source code download :https://github.com/dbzhang800/QtXlsxWriter

The name of the project is QtXlsxWriter, The original for 2014 It has been developed by the great God since .
Here is the great God blog :https://www.cnblogs.com/swarmbees/
And then there was one QtXlsx Project , The project 2017 Development started in , Some of the code and the above QtXlsxWriter Items overlap .
Open source does not ask the source , Made a comparison , Feeling or QtXlsxWriter It looks better , Simple comparison , This project is also introduced below .

Two catalogue

In the source code , There are three main parts , Source code 、 Example 、 unit testing , As shown in the figure below .
 Insert picture description here

  • There are many examples of code , Many engineering projects can even be used directly , It's very convenient .
  • There is nothing to say about the source code , This is a hard dish , Need to bite hard , Later, if necessary, you may write a separate blog .
  • The test unit is still very important , This is mainly for developers , We can still learn about the unit testing of this project , Learn about its construction 、 The test method 、 Ideas, etc .

Generally, we first look at the sample code , The simplest , Understand how to use the main external interfaces of the library , Then look at the source code and unit tests .

3、 ... and Introduction

The library can be used in two ways ,github The project is described below :
Method 1、 compile 、 Installed as qt Module , Directly in the project pro In file QT += xlsx Way to join the use of , Many more formal third-party libraries can use this method .( This makes the library more official , Or the official , Just not released , If so, I don't know …)
 Insert picture description here
Method 2、 Contains the source code directly pri file , Add the source code as a sub module of the project .
 Insert picture description here

原网站

版权声明
本文为[Knowledge first]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202200512307768.html