Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qrect.h File Reference
#include <QtCore/qhashfunctions.h>
#include <QtCore/qmargins.h>
#include <QtCore/qsize.h>
#include <QtCore/qpoint.h>
+ Include dependency graph for qrect.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  QRect
 \inmodule QtCore\reentrant More...
 
class  QRectF
 \inmodule QtCore\reentrant More...
 

Functions

 Q_DECLARE_TYPEINFO (QRect, Q_RELOCATABLE_TYPE)
 
Q_CORE_EXPORT QDataStreamoperator<< (QDataStream &, const QRect &)
 
Q_CORE_EXPORT QDataStreamoperator>> (QDataStream &, QRect &)
 
constexpr size_t qHash (const QRect &r, size_t seed=0) noexcept
 
constexpr QRect operator+ (const QRect &rectangle, const QMargins &margins) noexcept
 
constexpr QRect operator+ (const QMargins &margins, const QRect &rectangle) noexcept
 
constexpr QRect operator- (const QRect &lhs, const QMargins &rhs) noexcept
 
Q_CORE_EXPORT QDebug operator<< (QDebug, const QRect &)
 
 Q_DECLARE_TYPEINFO (QRectF, Q_RELOCATABLE_TYPE)
 
Q_CORE_EXPORT QDataStreamoperator<< (QDataStream &, const QRectF &)
 
Q_CORE_EXPORT QDataStreamoperator>> (QDataStream &, QRectF &)
 
constexpr QRectF operator+ (const QRectF &lhs, const QMarginsF &rhs) noexcept
 
constexpr QRectF operator+ (const QMarginsF &lhs, const QRectF &rhs) noexcept
 
constexpr QRectF operator- (const QRectF &lhs, const QMarginsF &rhs) noexcept
 
Q_CORE_EXPORT QDebug operator<< (QDebug, const QRectF &)
 

Function Documentation

◆ operator+() [1/4]

constexpr QRect operator+ ( const QMargins margins,
const QRect rectangle 
)
related

Definition at line 435 of file qrect.h.

◆ operator+() [2/4]

constexpr QRectF operator+ ( const QMarginsF lhs,
const QRectF rhs 
)
related

Definition at line 863 of file qrect.h.

◆ operator+() [3/4]

constexpr QRect operator+ ( const QRect rectangle,
const QMargins margins 
)
related

Definition at line 429 of file qrect.h.

◆ operator+() [4/4]

constexpr QRectF operator+ ( const QRectF lhs,
const QMarginsF rhs 
)
related

Definition at line 857 of file qrect.h.

◆ operator-() [1/2]

constexpr QRect operator- ( const QRect lhs,
const QMargins rhs 
)
related

Definition at line 441 of file qrect.h.

◆ operator-() [2/2]

constexpr QRectF operator- ( const QRectF lhs,
const QMarginsF rhs 
)
related

Definition at line 869 of file qrect.h.

◆ operator<<() [1/4]

Q_CORE_EXPORT QDataStream & operator<< ( QDataStream s,
const QRect r 
)
related

Definition at line 1225 of file qrect.cpp.

◆ operator<<() [2/4]

Q_CORE_EXPORT QDataStream & operator<< ( QDataStream s,
const QRectF r 
)
related

Definition at line 2447 of file qrect.cpp.

◆ operator<<() [3/4]

Q_CORE_EXPORT QDebug operator<< ( QDebug  dbg,
const QRect r 
)

Definition at line 1265 of file qrect.cpp.

References QtDebugUtils::formatQRect().

+ Here is the call graph for this function:

◆ operator<<() [4/4]

Q_CORE_EXPORT QDebug operator<< ( QDebug  dbg,
const QRectF r 
)

Definition at line 2479 of file qrect.cpp.

References QtDebugUtils::formatQRect().

+ Here is the call graph for this function:

◆ operator>>() [1/2]

Q_CORE_EXPORT QDataStream & operator>> ( QDataStream s,
QRect r 
)
related

Definition at line 1246 of file qrect.cpp.

◆ operator>>() [2/2]

Q_CORE_EXPORT QDataStream & operator>> ( QDataStream s,
QRectF r 
)
related

Definition at line 2464 of file qrect.cpp.

◆ Q_DECLARE_TYPEINFO() [1/2]

Q_DECLARE_TYPEINFO ( QRect  ,
Q_RELOCATABLE_TYPE   
)

◆ Q_DECLARE_TYPEINFO() [2/2]

Q_DECLARE_TYPEINFO ( QRectF  ,
Q_RELOCATABLE_TYPE   
)

◆ qHash()

constexpr size_t qHash ( const QRect r,
size_t  seed = 0 
)
inlineconstexprnoexcept

Definition at line 424 of file qrect.h.