Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qglobal.cpp File Reference

(fd6cfd22831c6ff7078bb97e62439375cfc849f6)

#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 dependency graph for qglobal.cpp:

Go to the source code of this file.

Classes

struct  QInternal_CallBackTable
 

Namespaces

namespace  QtPrivate
 \macro QT_NO_KEYWORDS >
 

Functions

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

Function Documentation

◆ 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 98 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: