diff options
author | Sona Kurazyan <sona.kurazyan@qt.io> | 2022-09-16 13:02:42 +0200 |
---|---|---|
committer | Sona Kurazyan <sona.kurazyan@qt.io> | 2022-09-22 13:48:14 +0200 |
commit | 8e0b0aa5c5fa13bb6a538ecaab0afef2a5d849b2 (patch) | |
tree | 665b617be8195d5ac79d5a29b94bc35857fbb334 | |
parent | 3cb00e415d72f466a1f235490cfae029169ce7ae (diff) |
Extract overview page for QtTypes header from QtGlobal docs
Task-number: QTBUG-106154
Change-Id: Ieb325d38572bf8659d3f49fa3948533156c70e40
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
-rw-r--r-- | src/corelib/global/qtypes.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/corelib/global/qtypes.cpp b/src/corelib/global/qtypes.cpp index 01a042d087..8c2bab253c 100644 --- a/src/corelib/global/qtypes.cpp +++ b/src/corelib/global/qtypes.cpp @@ -15,6 +15,31 @@ QT_BEGIN_NAMESPACE /*! + \headerfile <QtTypes> + \inmodule QtCore + \title Qt Type Declarations + + \brief The <QtTypes> header file includes Qt fundamental type declarations. + + The header file declares several type definitions that guarantee a + specified bit-size on all platforms supported by Qt for various + basic types, for example \l qint8 which is a signed char + guaranteed to be 8-bit on all platforms supported by Qt. The + header file also declares the \l qlonglong type definition for + \c {long long int}. + + Several convenience type definitions are declared: \l qreal for \c + double or \c float, \l uchar for \c {unsigned char}, \l uint for + \c {unsigned int}, \l ulong for \c {unsigned long} and \l ushort + for \c {unsigned short}. + + The header also provides series of macros that make it possible to print + some Qt type aliases (qsizetype, qintptr, etc.) via a formatted output + facility such as printf() or qDebug() without raising formatting warnings + and without the need of a type cast. +*/ + +/*! \typedef qreal \relates <QtTypes> |