QT中的数据类型--转自<QtGlobal>

来源:互联网 发布:mysql count 性能优化 编辑:程序博客网 时间:2024/05/17 15:58

<QtGlobal> - Global Qt Declarations

The <QtGlobal> header file includes the fundamental global declarations. It is included by most other Qt header files. More...

  • Obsolete members
  • Qt 3 support members

Types

typedefQtMsgHandlerenumQtMsgType { QtDebugMsg, QtWarningMsg, QtCriticalMsg, QtFatalMsg, QtSystemMsg }typedefqint8typedefqint16typedefqint32typedefqint64typedefqlonglongtypedefqptrdifftypedefqrealtypedefquint8typedefquint16typedefquint32typedefquint64typedefquintptrtypedefqulonglongtypedefuchartypedefuinttypedefulongtypedefushort

Functions

TqAbs ( const T & value )const T &qBound ( const T & min, const T & value, const T & max )voidqCritical ( const char * msg, ... )voidqDebug ( const char * msg, ... )voidqFatal ( const char * msg, ... )boolqFuzzyCompare ( double p1, double p2 )boolqFuzzyCompare ( float p1, float p2 )QtMsgHandlerqInstallMsgHandler ( QtMsgHandler handler )intqMacVersion ()const T &qMax ( const T & value1, const T & value2 )const T &qMin ( const T & value1, const T & value2 )qint64qRound64 ( qreal value )intqRound ( qreal value )const char *qVersion ()voidqWarning ( const char * msg, ... )T *q_check_ptr ( T * pointer )QByteArrayqgetenv ( const char * varName )boolqputenv ( const char * varName, const QByteArray &value )intqrand ()voidqsrand ( uint seed )QStringqtTrId ( const char * id, int n = -1 )voidqt_set_sequence_auto_mnemonic ( bool on )intqt_symbian_exception2Error ( const std::exception &aThrow )voidqt_symbian_exception2LeaveL ( const std::exception &aThrow )voidqt_symbian_throwIfError ( int error )

Macros

 QT_POINTER_SIZE QT_REQUIRE_VERSION ( int argc, char ** argv, const char *version ) QT_TRANSLATE_NOOP3 ( contextsourceTextcomment ) QT_TRANSLATE_NOOP ( contextsourceText ) QT_TRAP_THROWING ( function ) QT_TRID_NOOP ( id ) QT_TRYCATCH_ERROR ( errorfunction ) QT_TRYCATCH_LEAVING ( function ) QT_TR_NOOP ( sourceText ) QT_VERSION QT_VERSION_CHECK QT_VERSION_STRvoidQ_ASSERT ( bool test )voidQ_ASSERT_X ( bool test, const char * where, const char *what ) Q_BIG_ENDIAN Q_BYTE_ORDER Q_CC_BOR Q_CC_CDS Q_CC_COMEAU Q_CC_DEC Q_CC_EDG Q_CC_GHS Q_CC_GNU Q_CC_HIGHC Q_CC_HPACC Q_CC_INTEL Q_CC_KAI Q_CC_MIPS Q_CC_MSVC Q_CC_MWERKS Q_CC_OC Q_CC_PGI Q_CC_SUN Q_CC_SYM Q_CC_USLC Q_CC_WATvoidQ_CHECK_PTR ( void * pointer ) Q_DECLARE_TYPEINFO ( TypeFlags ) Q_DECL_EXPORT Q_DECL_IMPORT Q_FOREACH ( variablecontainer ) Q_FOREVERconst char *Q_FUNC_INFO ()qint64Q_INT64_C ( literal ) Q_LITTLE_ENDIAN Q_OS_AIX Q_OS_BSD4 Q_OS_BSDI Q_OS_CYGWIN Q_OS_DARWIN Q_OS_DGUX Q_OS_DYNIX Q_OS_FREEBSD Q_OS_HPUX Q_OS_HURD Q_OS_IRIX Q_OS_LINUX Q_OS_LYNX Q_OS_MAC Q_OS_MSDOS Q_OS_NETBSD Q_OS_OS2 Q_OS_OPENBSD Q_OS_OS2EMX Q_OS_OSF Q_OS_QNX Q_OS_RELIANT Q_OS_SCO Q_OS_SOLARIS Q_OS_SYMBIAN Q_OS_ULTRIX Q_OS_UNIX Q_OS_UNIXWARE Q_OS_WIN32 Q_OS_WINCEquint64Q_UINT64_C ( literal ) Q_UNUSED ( name ) Q_WS_S60 Q_WS_X11 Q_WS_MAC Q_WS_QWS Q_WS_WIN foreach ( variablecontainer ) foreverconst char *qPrintable ( const QString & str )

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.

0 0
原创粉丝点击