1
0
mirror of https://github.com/QtExcel/QXlsx.git synced 2025-01-16 04:42:53 +08:00

update old markdown text

This commit is contained in:
Jay Two 2023-01-06 17:00:27 +09:00
parent d0f846a31e
commit ffad8c07f9
5 changed files with 52 additions and 47 deletions

View File

@ -29,16 +29,18 @@ int main(int argc, char *argv[])
{
QCoreApplication app(argc, argv);
int row = 1; int col = 1;
// [1] Writing excel file(*.xlsx)
QXlsx::Document xlsxW;
xlsxW.write("A1", "Hello Qt!"); // write "Hello Qt!" to cell(A,1). it's shared string.
QVariant writeValue = QString("Hello Qt!");
xlsxW.write(row, col, writeValue); // write "Hello Qt!" to cell(A,1).
xlsxW.saveAs("Test.xlsx"); // save the document as 'Test.xlsx'
// [2] Reading excel file(*.xlsx)
Document xlsxR("Test.xlsx");
if (xlsxR.load()) // load excel file
{
int row = 1; int col = 1;
Cell* cell = xlsxR.cellAt(row, col); // get cell pointer.
if ( cell != NULL )
{
@ -54,24 +56,24 @@ int main(int argc, char *argv[])
## [TestExcel](https://github.com/QtExcel/QXlsx/tree/master/TestExcel)
- :zap: Basic examples (based on QtXlsx examples)
- calendar
- chart
- chart sheet
- data validation
- demo
- document property
- extract data
- formula
- hyperlink
- image
- merge cells
- number format
- page margins
- read style
- richtext
- row column
- style
- worksheet operations
- [calendar](https://github.com/QtExcel/QXlsx/blob/master/TestExcel/calendar.cpp)
- [chart](https://github.com/QtExcel/QXlsx/blob/master/TestExcel/chart.cpp)
- [chart sheet](https://github.com/QtExcel/QXlsx/blob/master/TestExcel/chartsheet.cpp)
- [data validation](https://github.com/QtExcel/QXlsx/blob/master/TestExcel/datavalidation.cpp)
- [demo](https://github.com/QtExcel/QXlsx/blob/master/TestExcel/demo.cpp)
- [document property](https://github.com/QtExcel/QXlsx/blob/master/TestExcel/documentproperty.cpp)
- [extract data](https://github.com/QtExcel/QXlsx/blob/master/TestExcel/extractdata.cpp)
- [formula](https://github.com/QtExcel/QXlsx/blob/master/TestExcel/formulas.cpp)
- [hyperlink](https://github.com/QtExcel/QXlsx/blob/master/TestExcel/hyperlinks.cpp)
- [image](https://github.com/QtExcel/QXlsx/blob/master/TestExcel/image.cpp)
- [merge cells](https://github.com/QtExcel/QXlsx/blob/master/TestExcel/mergecells.cpp)
- [number format](https://github.com/QtExcel/QXlsx/blob/master/TestExcel/numberformat.cpp)
- [page margins](https://github.com/QtExcel/QXlsx/blob/master/TestExcel/pageMargins.cpp)
- [read style](https://github.com/QtExcel/QXlsx/blob/master/TestExcel/readStyle.cpp)
- [richtext](https://github.com/QtExcel/QXlsx/blob/master/TestExcel/richtext.cpp)
- [row column](https://github.com/QtExcel/QXlsx/blob/master/TestExcel/rowcolumn.cpp)
- [style](https://github.com/QtExcel/QXlsx/blob/master/TestExcel/style.cpp)
- [worksheet operations](https://github.com/QtExcel/QXlsx/blob/master/TestExcel/worksheetoperations.cpp)
![](markdown.data/testexcel.png)
@ -79,21 +81,23 @@ int main(int argc, char *argv[])
- See 'HelloAndroid' example using QML and native C++.
- Qt 5.11.1 / QtCreator 4.6.2 / gcc 4.9 / Android x86 (using Emulator [Android Oreo]) / Android Studio 3.1.3 (Android NDK 17.1)
- Qt 5.11.1 / gcc 4.9 / QtCreator 4.6.2
- Android x86 (using Emulator <Android Oreo / API 26>)
- Android Studio 3.1.3 (Android NDK 17.1)
![](markdown.data/android.jpg)
## [WebServer](https://github.com/QtExcel/QXlsx/tree/master/WebServer)
- Load xlsx file and display on Web.
- Connect to `http://127.0.0.1:3001`
- C++ 14 is required. Old compilers is not supported.(based on recurse)
- Connect to `http://127.0.0.1:3001`
- C++ 14(17) is required. Old compilers is not supported.
![](markdown.data/webserver.png)
## [ShowConsole](https://github.com/QtExcel/QXlsx/tree/master/ShowConsole)
- Load xlsx file and display in console.
- [Usage] ShowConsole *.xlsx
- C++ 11 is required. Old compilers is not supported. (based on libfort)
- C++ 11 is required. Old compilers is not supported.
![](markdown.data/show-console.jpg)
@ -105,6 +109,8 @@ int main(int argc, char *argv[])
## XlsxFactory
- Load xlsx file and display on Qt widgets.
- Moved to personal repository for advanced app.
- https://j2doll.tistory.com/654
- The source code of this program cannot be released because it contains a commercial license.
![](markdown.data/copycat.png)
![](markdown.data/copycat2.jpg)

View File

@ -25,9 +25,17 @@ int main(int argc, char *argv[])
{
QCoreApplication app(argc, argv);
//--------------------------------------
// [1] Writing excel file(*.xlsx)
QXlsx::Document xlsxW;
xlsxW.write("A1", "Hello Qt!"); // write "Hello Qt!" to cell(A,1). it's shared string.
int row = 1; int col = 1; //
// xlsxW.write("A1", "Hello Qt!"); // write "Hello Qt!" to cell(A,1). it's shared string.
QVariant writeValue = QString("Hello Qt!");
xlsxW.write(row, col, writeValue);
if ( xlsxW.saveAs("Test.xlsx") ) // save the document as 'Test.xlsx'
{
qDebug() << "[debug] success to write xlsx file";
@ -35,17 +43,19 @@ int main(int argc, char *argv[])
else
{
qDebug() << "[debug][error] failed to write xlsx file";
exit(-1);
}
qDebug() << "[debug] current directory is " << QDir::currentPath();
//--------------------------------------
// [2] Reading excel file(*.xlsx)
Document xlsxR("Test.xlsx");
if ( xlsxR.load() ) // load excel file
{
qDebug() << "[debug] success to load xlsx file.";
int row = 1; int col = 1;
Cell* cell = xlsxR.cellAt(row, col); // get cell pointer.
if ( cell != NULL )
{
@ -55,6 +65,7 @@ int main(int argc, char *argv[])
else
{
qDebug() << "[debug][error] cell(1,1) is not set.";
exit(-2);
}
}
else

View File

@ -1,6 +1,6 @@
# QXlsx
> *Read this in other languages: [English](README.md), :kr: [한국어](README.ko.md), [Russian](README.RU.md)*
> *Read this in other languages: [English](README.md), :kr: [Korean](README.ko.md), :ru: [Russian](README.RU.md)*
<p align="center"><img src="https://raw.githubusercontent.com/QtExcel/QXlsx/master/markdown.data/QXlsx-Desktop.png"></p>

View File

@ -2,26 +2,13 @@
## Qt with Compiler Environment
| Qt | Tool | OS | Build |
| ------ | ------------------ | ------------------------- | ------- |
| 6.0.0 | MingW 64 bit | Windows 64bit | :smile: |
| ------ | ------------------ | ------------------------- | ------- |
| 5.12.3 | MingW 64 bit | Windows 64bit | :smile: |
| 5.12.0 | Visual Studio 2017 | Windows 64bit | :smile: |
| 5.12.0 | MingW 64 bit | Windows 64bit | :smile: |
| 5.11.2 | Visual Studio 2017 | Windows 64bit | :smile: |
| 5.10.1 | MingW | Windows 32bit | :smile: |
| 5.9.2 | MingW | Windows 32bit | :smile: |
| 5.9.1 | Visual Studio 2017 | Windows 64bit | :smile: |
| 5.9.1 | Visual Studio 2017 | Windows 32bit | :smile: |
| 5.9.1 | MingW | Windows 32bit | :smile: |
| 5.9.1 | gcc+make | Ubuntu 16/x64 | :smile: |
| 5.6.0 | gcc+make | MacOS(Darwin Kernel 15.6) | :smile: |
| 5.6.0 | MingW | Windows 32bit | :smile: |
| 5.5.1 | MingW | Windows 32bit | :smile: |
| 5.5.0 | gcc+make | Ubuntu 17/i686 | :smile: |
| 5.2.0 | gcc+make | Ubuntu 14/x64 | :smile: |
| ~~5.0.1~~ | ~~MingW~~ | ~~Windows 32bit~~ | ~~:angry:~~ |
| Qt | Tool | OS |
| ------ | ------------------ | ------------------------- |
| 5.15 | MingW 64 bit | Windows 64bit |
| ------ | ------------------ | ------------------------- |
| 6.4.1 | gcc 11.3 | Linux 64bit |
| ------ | ------------------ | ------------------------- |
- As the code is upgraded, old Qt may not be supported.
- If more funding is raised, we will also support MacOS testing.

View File

@ -1,2 +1,3 @@
# To Upgrade
- Develop the encryption function of xlsx
- ...