
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. The functions are related to generating messages, Qt version handling and comparing and adjusting object values. 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 global declarations include types, functions and macros. Q_ASSERT_X(bool test, const char * where, const char * what) QT_TRANSLATE_N_NOOP( context, sourceText) QT_TRANSLATE_N_NOOP3( context, sourceText, comment) QT_TRANSLATE_NOOP3( context, sourceText, disambiguation) QT_REQUIRE_VERSION(int argc, char ** argv, const char * version) Qputenv(const char * varName, const QByteArray & value) QSetMessagePattern(const QString & pattern)

QNonConstOverload(T memberFunctionPointer) QInstallMessageHandler(QtMessageHandler handler)

QFormatLogMessage(QtMsgType type, const QMessageLogContext & context, const QString & str) QEnvironmentVariableIsSet(const char * varName)

QEnvironmentVariableIsEmpty(const char * varName) QEnvironmentVariableIntValue(const char * varName, bool * ok = nullptr) QEnvironmentVariable(const char * varName) QEnvironmentVariable(const char * varName, const QString & defaultValue) QBound(const T & min, const T & val, const T & max) Typename std::enable_if_t || std::is_signed_v, bool>
