summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Eliasson <andreas.eliasson@qt.io>2022-12-21 13:47:06 +0100
committerAndreas Eliasson <andreas.eliasson@qt.io>2022-12-27 12:44:36 +0100
commit35bfd24ebf0e479de005f0ad5466e649f592905a (patch)
tree626ca2ebe8c134804168609d3d6980f50834e73e
parent27b3338c68fed9cb803cd0df9ab13a380871ecf4 (diff)
downloadqtserialport-35bfd24ebf0e479de005f0ad5466e649f592905a.tar.gz
Doc: Revise Qt Serial Port module landing page
For consistency, make the module landing page follow the same structure as seen in most other modules. Pick-to: 6.5 6.4 6.2 Change-Id: I2e870890b520483e17e88202cd86f0c5e3f6ad75 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
-rw-r--r--src/serialport/doc/src/index.qdoc28
1 files changed, 9 insertions, 19 deletions
diff --git a/src/serialport/doc/src/index.qdoc b/src/serialport/doc/src/index.qdoc
index bc9ff80..d91f25c 100644
--- a/src/serialport/doc/src/index.qdoc
+++ b/src/serialport/doc/src/index.qdoc
@@ -7,9 +7,9 @@
\title Qt Serial Port
\brief Provides an API to make serial programming simple and portable.
- Qt Serial Port provides the basic functionality, which includes
- configuring, I/O operations, getting and setting the control signals of the
- RS-232 pinouts.
+ Qt Serial Port provides basic functionality for configuration, I/O
+ operations, and getting and setting the control signals of the RS-232
+ pinouts.
The following items are not supported by this module:
\list
@@ -19,27 +19,17 @@
\li Pinout signal change notification.
\endlist
- To use the serial port in your application, add the following include
- statement:
+ \section1 Using the Module
- \code
- #include <QSerialPort>
- \endcode
+ \include {module-use.qdocinc} {using the c++ api}
- For information about available serial ports, use the following include
- statement:
+ \section2 Building with Cmake
- \code
- #include <QSerialPortInfo>
- \endcode
+ \include {module-use.qdocinc} {building with cmake} {SerialPort}
- To use the module with cmake, use the \c{find_package()} command to locate
- the needed module components in the \c{Qt6} package:
- \include qtserialport-module-use.qdocinc cmakebuild
+ \section2 Building with qmake
- To use the module for building with qmake, add the module as a value of the
- \c QT variable in the project's .pro file:
- \include qtserialport-module-use.qdocinc qmakebuild
+ \include {module-use.qdocinc} {building_with_qmake} {serialport}
\section1 Module Evolution
\l{Changes to Qt SerialPort} lists important changes in the module API