Update documentation

This commit is contained in:
Debao Zhang
2013-11-05 13:57:26 +08:00
parent 9263894eed
commit e369d98275
14 changed files with 28 additions and 20 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

+5 -1
View File
@@ -1,8 +1,12 @@
/*! /*!
\example demo \example demo
\title Xlsx Demo \title Qt Xlsx Demo
\brief This is a demo which is used to show features of the library \brief This is a demo which is used to show features of the library
\ingroup qtxlsx-examples \ingroup qtxlsx-examples
\image xlsx_demo.png \image xlsx_demo.png
\image xlsx_demo_fonts.png
\image xlsx_demo_formulas.png
\image xlsx_demo_merging.png
\image xlsx_demo_grouping.png
*/ */
+2 -2
View File
@@ -289,8 +289,8 @@ int main()
xlsx.saveAs("Book1.xlsx"); xlsx.saveAs("Book1.xlsx");
//Make sure that read/write works well. //Make sure that read/write works well.
Document xlsx2("Book1.xlsx"); Document xlsx2("demo.xlsx");
xlsx2.saveAs("Book2.xlsx"); xlsx2.saveAs("demo2.xlsx");
return 0; return 0;
} }
Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

@@ -1,11 +1,11 @@
/*! /*!
\title Qt Xlsx Examples - Document Properties
\example documentproperty \example documentproperty
\title Xlsx DocProperties Example \title Document Properties Example
\brief This is a simplest xlsx examples. \brief This is a simplest xlsx examples.
\image doc_property.png
\ingroup qtxlsx-examples \ingroup qtxlsx-examples
This example demonstrates how to generate a This example demonstrates how to set the document properties.
.xlsx file with Qt Xlsx Library.
*/ */
@@ -9,8 +9,8 @@
This creates a new instance of the all important Document This creates a new instance of the all important Document
class which gives you access to the Excel workbook and worksheets. class which gives you access to the Excel workbook and worksheets.
\snippet hello/main.cpp 0 \snippet extractdata/main.cpp 0
Extracts data from current worksheet. Extracts data from current worksheet.
\snippet hello/main.cpp 1 \snippet extractdata/main.cpp 1
*/ */
Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 15 KiB

+10 -8
View File
@@ -1,20 +1,22 @@
/*! /*!
\example hello \example hello
\title Xlsx Hello Example \title Hello QtXlsx Example
\brief This is a simplest xlsx examples. \brief This is a simplest Qt Xlsx example.
\ingroup qtxlsx-examples \ingroup qtxlsx-examples
This example demonstrates how to generate a This example demonstrates how to create a new
simplest .xlsx file with Qt Xlsx Library. .xlsx file containing some basic data and calculations
with Qt Xlsx Library. So lets see how this is achieved.
\image hello.png \image hello.png
Create an object of the class QXlsx::Document. This creates a new instance of the all important Document
class which gives you access to the Excel workbook and worksheets.
\snippet hello/main.cpp 0 \snippet hello/main.cpp 0
Set the cells of worksheet. A default worksheet have been created by Document. Let's start
by adding some basic data.
\snippet hello/main.cpp 1 \snippet hello/main.cpp 1
Save it. Now save the file and all its components.
\snippet hello/main.cpp 2 \snippet hello/main.cpp 2
*/ */
+3 -1
View File
@@ -1,5 +1,7 @@
TEMPLATE = subdirs TEMPLATE = subdirs
SUBDIRS = hello style \ SUBDIRS = hello \
extractdata \
style \
documentproperty \ documentproperty \
image \ image \
mergecells \ mergecells \
+2 -2
View File
@@ -32,8 +32,8 @@
Microsoft Excel and can be used in any platform that Qt5 supported. The library can be used to Microsoft Excel and can be used in any platform that Qt5 supported. The library can be used to
\list \list
\li Generate a new .xlsx file from scratch \li \l{Hello QtXlsx Example}{Generate a new .xlsx file from scratch}
\li Extract data from an existing .xlsx file \li \l{Extract Data Example}{Extract data from an existing .xlsx file}
\li Edit an existing .xlsx file \li Edit an existing .xlsx file
\endlist \endlist