<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.