1
0
mirror of https://github.com/QtExcel/QXlsx.git synced 2025-01-30 05:02:52 +08:00

test how to setup article

This commit is contained in:
Look Skyworker 2018-06-02 11:35:22 +09:00
parent 8398ee2c77
commit 5f20c18a64
15 changed files with 55 additions and 35 deletions

54
HowToSetProject.md Normal file
View File

@ -0,0 +1,54 @@
## How to setup QXlsx project
- Here's an easy way to apply QXlsx.
- Describes when to apply to Windows.
- The method of applying it on Linux or Mac is similar, and I will write help if there is an additional request.
## Step
* 1. Clone source code from github
```sh
git clone https://github.com/j2doll/QXlsx.git
```
![](markdown.data/01.png)
* 2. Execute QtCreator
![](markdown.data/02.png)
* If you don't know use QtCreator, see Qt Company site. [https://www.qt.io/qt-features-libraries-apis-tools-and-ide/](https://www.qt.io/qt-features-libraries-apis-tools-and-ide/)
* 3. Create your own Qt Project.
![](markdown.data/03.png)
* 4. Sample is console application.
![](markdown.data/04.png)
* 5. Set project name. Current project name is HelloQXlsx.
![](markdown.data/05.png)
* 6. HelloQXlsx project has been created.
![](markdown.data/06.png)
* 7. Current directory for project
![](markdown.data/07.png)
* 8. Copy QXlsx code to your app project
![](markdown.data/08.png)
* 9. Current directories and files for project
![](markdown.data/09.png)
* 10. Append code for QXlxs library on your Qt project(*.pro)
![](markdown.data/10.png)
* 11. Set heaer files and namespace for sample. Then append hello world code.
![](markdown.data/11.png)
* 12. Build and Run a project
![](markdown.data/12.png)
* 13. Execute file and Excel file(xlsx) is created.
![](markdown.data/12.png)
## Etc
* Hi! I'm j2doll. My native language is not English and my English is not fluent. Please understand if I misunderstood the explanation :-)

View File

@ -45,41 +45,7 @@ else
```
## How to build
* :one: Install Qt 5 from [Qt Company](https://www.qt.io) (2017-)
* :two: Clone github source code
```sh
git clone https://github.com/j2doll/QXlsx.git
```
* :three: Build QXlsx project (it is main project.)
```sh
cd QXlsx
qmake QXlsx.pro
make debug (you may use 'make release'.)
```
* :four: Build TestExcel (TestExcel is test project of QXlsx. see test code.)
```sh
cd TestExcel
qmake TestExcel.pro
make
```
* :five: Run TestExcel
```sh
./TestExcel
```
* :pushpin: Include QXlsx.pri and set QXlsx path value for your own qt project.
```qmake
# default relative path (you may not set this value. then default value will be used.)
QXLSX_PARENTPATH=./
QXLSX_HEADERPATH=./header/
QXLSX_SOURCEPATH=./source/
# abs. directory sample
# QXLSX_PARENTPATH=/hello/world/
# QXLSX_HEADERPATH=/hello/world/header/
# QXLSX_SOURCEPATH=/hello/world/source/
include(../QXlsx/QXlsx.pri)
```
* See (How to setup QXlsx project)[HowToSetProject.md]
## Test environment
Test Environment is below.

BIN
markdown.data/01.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 156 KiB

BIN
markdown.data/02.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

BIN
markdown.data/03.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 108 KiB

BIN
markdown.data/04.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 199 KiB

BIN
markdown.data/05.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

BIN
markdown.data/06.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 105 KiB

BIN
markdown.data/07.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 141 KiB

BIN
markdown.data/08.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

BIN
markdown.data/09.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

BIN
markdown.data/10.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 464 KiB

BIN
markdown.data/11.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 348 KiB

BIN
markdown.data/12.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 158 KiB

BIN
markdown.data/13.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 496 KiB