Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qglobal.cpp File Reference
#include "qplatformdefs.h"
#include "qstring.h"
#include "qbytearrayview.h"
#include "qlist.h"
#include "qdir.h"
#include "qdatetime.h"
#include <private/qlocale_tools_p.h>
#include "qnativeinterface.h"
#include "qnativeinterface_p.h"
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <errno.h>
+ Include dependency graph for qglobal.cpp:

Go to the source code of this file.

Classes

struct  QInternal_CallBackTable
 

Namespaces

namespace  QtPrivate
 \macro QT_NAMESPACE
 

Functions

Q_CORE_EXPORT Q_DECL_CONST_FUNCTION unsigned int qt_int_sqrt (unsigned int n)
 \inmodule QtCore \title Global Qt Declarations
 
void qAbort ()
 

Function Documentation

◆ qAbort()

void qAbort ( )

Definition at line 136 of file qglobal.cpp.

References Q_UNREACHABLE_IMPL.

Referenced by qDetectCpuFeatures(), and qt_message_fatal().

+ Here is the caller graph for this function:

◆ qt_int_sqrt()

Q_CORE_EXPORT Q_DECL_CONST_FUNCTION unsigned int qt_int_sqrt ( unsigned int  n)

\inmodule QtCore \title Global Qt Declarations

The <QtGlobal> header file includes an assortment of other headers.

Up to Qt 6.5, most Qt header files included <QtGlobal>. Before Qt 6.5, <QtGlobal> defined an assortment of global declarations. Most of these have moved, at Qt 6.5, to separate headers, so that source code can include only what it needs, rather than the whole assortment. For now, <QtGlobal> includes those other headers (see next section), but future releases of Qt may remove some of these headers from <QtGlobal> or condition their inclusion on a version check. Likewise, in future releases, some Qt headers that currently include <QtGlobal> may stop doing so. The hope is that this will improve compilation times by avoiding global declarations when they are not used.

Definition at line 113 of file qglobal.cpp.

References qt_int_sqrt(), and r2.

Referenced by QTextDocument::adjustSize(), and qt_int_sqrt().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: