<QtGlobal> - Global Qt Declarations
The <QtGlobal> header file includes the fundamental global declarations. It is included by most other Qt header files. More...
Types
| typedef | QtMsgHandler |
| enum | QtMsgType { QtDebugMsg, QtWarningMsg, QtCriticalMsg, QtFatalMsg, QtSystemMsg } |
| typedef | qint8 |
| typedef | qint16 |
| typedef | qint32 |
| typedef | qint64 |
| typedef | qlonglong |
| typedef | qptrdiff |
| typedef | qreal |
| typedef | quint8 |
| typedef | quint16 |
| typedef | quint32 |
| typedef | quint64 |
| typedef | quintptr |
| typedef | qulonglong |
| typedef | uchar |
| typedef | uint |
| typedef | ulong |
| typedef | ushort |
Functions
| T | qAbs ( const T & value ) |
| const T & | qBound ( const T & min, const T & value, const T & max ) |
| void | qCritical ( const char * msg, ... ) |
| void | qDebug ( const char * msg, ... ) |
| void | qFatal ( const char * msg, ... ) |
| bool | qFuzzyCompare ( double p1, double p2 ) |
| bool | qFuzzyCompare ( float p1, float p2 ) |
| QtMsgHandler | qInstallMsgHandler ( QtMsgHandler handler ) |
| int | qMacVersion () |
| const T & | qMax ( const T & value1, const T & value2 ) |
| const T & | qMin ( const T & value1, const T & value2 ) |
| qint64 | qRound64 ( qreal value ) |
| int | qRound ( qreal value ) |
| const char * | qVersion () |
| void | qWarning ( const char * msg, ... ) |
| T * | q_check_ptr ( T * pointer ) |
| QByteArray | qgetenv ( const char * varName ) |
| bool | qputenv ( const char * varName, const QByteArray &value ) |
| int | qrand () |
| void | qsrand ( uint seed ) |
| QString | qtTrId ( const char * id, int n = -1 ) |
| void | qt_set_sequence_auto_mnemonic ( bool on ) |
| int | qt_symbian_exception2Error ( const std::exception &aThrow ) |
| void | qt_symbian_exception2LeaveL ( const std::exception &aThrow ) |
| void | qt_symbian_throwIfError ( int error ) |
Macros
The global declarations include types, functions and macros.
The type definitions are partly convenience definitions for basic types (some of which guarantee certain bit-sizes on all platforms supported by Qt), partly types related to Qt message handling. The functions are related to generating messages, Qt version handling and comparing and adjusting object values. And finally, some of the declared macros enable programmers to add compiler or platform specific code to their applications, while others are convenience macros for larger operations.
本文档介绍了<QtGlobal>头文件中包含的全局Qt声明,包括基本类型定义、函数和宏。这些类型部分为基本类型提供便利定义,确保在所有支持Qt的平台上具有特定位宽,部分与Qt的消息处理相关。函数涉及消息生成、Qt版本处理以及对象值的比较和调整。宏则允许程序员在其应用中添加编译器或平台特定的代码,或者用于大型操作的便利宏。
1829

被折叠的 条评论
为什么被折叠?



