Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QtDebugUtils Namespace Reference

Functions

Q_CORE_EXPORT QByteArray toPrintable (const char *data, qint64 len, qsizetype maxSize)
 
template<class Point >
static void formatQPoint (QDebug &debug, const Point &point)
 
template<class Size >
static void formatQSize (QDebug &debug, const Size &size)
 
template<class Rect >
static void formatQRect (QDebug &debug, const Rect &rect)
 
template<class Margins >
static void formatQMargins (QDebug &debug, const Margins &margins)
 
template<class QEnum >
static void formatQEnum (QDebug &debug, QEnum value)
 
template<class QEnum >
static void formatNonNullQEnum (QDebug &debug, const char *prefix, QEnum value)
 
template<class Enum >
static void formatQFlags (QDebug &debug, const QFlags< Enum > &value)
 
template<class Enum >
static void formatNonNullQFlags (QDebug &debug, const char *prefix, const QFlags< Enum > &value)
 

Function Documentation

◆ formatNonNullQEnum()

template<class QEnum >
static void QtDebugUtils::formatNonNullQEnum ( QDebug debug,
const char *  prefix,
QEnum  value 
)
inlinestatic

Definition at line 70 of file qdebug_p.h.

References debug, and formatQEnum().

Referenced by operator<<().

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

◆ formatNonNullQFlags()

template<class Enum >
static void QtDebugUtils::formatNonNullQFlags ( QDebug debug,
const char *  prefix,
const QFlags< Enum > &  value 
)
inlinestatic

Definition at line 88 of file qdebug_p.h.

References debug, and formatQFlags().

Referenced by operator<<(), and operator<<().

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

◆ formatQEnum()

template<class QEnum >
static void QtDebugUtils::formatQEnum ( QDebug debug,
QEnum  value 
)
inlinestatic

Definition at line 59 of file qdebug_p.h.

References debug, metaObject(), and QMetaEnum::valueToKey().

Referenced by formatGestureHeader(), formatInputMethodQueryEvent(), formatNonNullQEnum(), formatTouchEvent(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), and operator<<().

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

◆ formatQFlags()

template<class Enum >
static void QtDebugUtils::formatQFlags ( QDebug debug,
const QFlags< Enum > &  value 
)
inlinestatic

Definition at line 79 of file qdebug_p.h.

References debug, and QMetaEnum::valueToKeys().

Referenced by formatInputMethodQueryEvent(), formatNonNullQFlags(), formatTouchEvent(), operator<<(), operator<<(), operator<<(), and operator<<().

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

◆ formatQMargins()

template<class Margins >
static void QtDebugUtils::formatQMargins ( QDebug debug,
const Margins &  margins 
)
inlinestatic

Definition at line 51 of file qdebug_p.h.

References debug.

Referenced by operator<<(), and operator<<().

+ Here is the caller graph for this function:

◆ formatQPoint()

template<class Point >
static void QtDebugUtils::formatQPoint ( QDebug debug,
const Point point 
)
inlinestatic

Definition at line 33 of file qdebug_p.h.

References debug.

Referenced by formatGestureHeader(), formatGraphicsItemHelper(), formatPositions(), operator<<(), operator<<(), operator<<(), operator<<(), and operator<<().

+ Here is the caller graph for this function:

◆ formatQRect()

template<class Rect >
static void QtDebugUtils::formatQRect ( QDebug debug,
const Rect &  rect 
)
inlinestatic

Definition at line 45 of file qdebug_p.h.

References debug, and rect.

Referenced by operator<<(), operator<<(), operator<<(), operator<<(), and operator<<().

+ Here is the caller graph for this function:

◆ formatQSize()

template<class Size >
static void QtDebugUtils::formatQSize ( QDebug debug,
const Size size 
)
inlinestatic

Definition at line 39 of file qdebug_p.h.

References debug.

Referenced by QPrintDevice::format(), operator<<(), operator<<(), and operator<<().

+ Here is the caller graph for this function:

◆ toPrintable()

QByteArray QtDebugUtils::toPrintable ( const char *  data,
qint64  len,
qsizetype  maxSize 
)

Definition at line 29 of file qdebug.cpp.

References i, QtMiscUtils::isAsciiPrintable(), out, qMin(), and QtMiscUtils::toHexLower().

Referenced by QTextStreamPrivate::fillReadBuffer(), QTextStreamPrivate::flushWriteBuffer(), QNativeSocketEnginePrivate::nativeRead(), QNativeSocketEnginePrivate::nativeReceiveDatagram(), QNativeSocketEnginePrivate::nativeSendDatagram(), QNativeSocketEnginePrivate::nativeWrite(), QAbstractSocket::readData(), and QAbstractSocket::writeData().

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