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
QDebug Class Reference

\inmodule QtCore More...

+ Inheritance diagram for QDebug:
+ Collaboration diagram for QDebug:

Related Symbols

(Note that these are not member symbols.)

template< class T > QDebug operator<< (QDebug debug, const QList< T > &list)
 Writes the contents of list to debug.
 
template< class T, qsizetype P > QDebug operator<< (QDebug debug, const QVarLengthArray< T, P > &array)
 
template< typename T, typename Alloc > QDebug operator<< (QDebug debug, const std::list< T, Alloc > &vec)
 
template< typename T, typename Alloc > QDebug operator<< (QDebug debug, const std::vector< T, Alloc > &vec)
 
template< typename T > QDebug operator<< (QDebug debug, const QSet< T > &set)
 Writes the contents of set to debug.
 
template< class Key, class T > QDebug operator<< (QDebug debug, const QMap< Key, T > &map)
 Writes the contents of map to debug.
 
template< class Key, class T > QDebug operator<< (QDebug debug, const QMultiMap< Key, T > &map)
 Writes the contents of map to debug.
 
template< typename Key, typename T, typename Compare, typename Alloc > QDebug operator<< (QDebug debug, const std::map< Key, T, Compare, Alloc > &map)
 
template< typename Key, typename T, typename Compare, typename Alloc > QDebug operator<< (QDebug debug, const std::multimap< Key, T, Compare, Alloc > &map)
 
template< class Key, class T > QDebug operator<< (QDebug debug, const QHash< Key, T > &hash)
 Writes the contents of hash to debug.
 
template< class Key, class T > QDebug operator<< (QDebug debug, const QMultiHash< Key, T > &hash)
 Writes the contents of hash to debug.
 
template< class T1, class T2 > QDebug operator<< (QDebug debug, const std::pair< T1, T2 > &pair)
 Writes the contents of pair to debug.
 
template< class T > QDebug operator<< (QDebug debug, const std::optional< T > &opt)
 
template< typename T > QDebug operator<< (QDebug debug, const QContiguousCache< T > &cache)
 Writes the contents of cache to debug.
 
template< typename T > QDebug operator<< (QDebug debug, const QFlags< T > &flags)
 
 operator<< (QDebug d, QAnyStringView s)
 

Detailed Description

\inmodule QtCore

The QDebug class provides an output stream for debugging information.

QDebug is used whenever the developer needs to write out debugging or tracing information to a device, file, string or console.

Friends And Related Symbol Documentation

◆ operator<<() [1/16]

operator<< ( QDebug d,
QAnyStringView s )
related
Since
6.7

Outputs s to debug stream d.

If {d.quotedString()} is true, indicates which encoding the string is in. If you just want the string data, use visit() like this:

s.visit([&d) (auto s) { d << s; });
GLdouble s
[6]
Definition qopenglext.h:235
See also
QAnyStringView::visit()

Definition at line 634 of file qanystringview.cpp.

◆ operator<<() [2/16]

template< typename T > QDebug operator<< ( QDebug debug,
const QContiguousCache< T > & cache )
related

Writes the contents of cache to debug.

T needs to support streaming into QDebug.

Definition at line 267 of file qdebug.h.

◆ operator<<() [3/16]

template< typename T > QDebug operator<< ( QDebug debug,
const QFlags< T > & flags )
related
Since
4.7

Writes flags to debug.

◆ operator<<() [4/16]

template< class Key, class T > QDebug operator<< ( QDebug debug,
const QHash< Key, T > & hash )
related

Writes the contents of hash to debug.

Both Key and T need to support streaming into QDebug.

Definition at line 267 of file qdebug.h.

◆ operator<<() [5/16]

template< class T > QDebug operator<< ( QDebug debug,
const QList< T > & list )
related

Writes the contents of list to debug.

T needs to support streaming into QDebug.

Definition at line 267 of file qdebug.h.

References other().

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

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

◆ operator<<() [6/16]

template< class Key, class T > QDebug operator<< ( QDebug debug,
const QMap< Key, T > & map )
related

Writes the contents of map to debug.

Both Key and T need to support streaming into QDebug.

Definition at line 267 of file qdebug.h.

◆ operator<<() [7/16]

template< class Key, class T > QDebug operator<< ( QDebug debug,
const QMultiHash< Key, T > & hash )
related

Writes the contents of hash to debug.

Both Key and T need to support streaming into QDebug.

Definition at line 267 of file qdebug.h.

◆ operator<<() [8/16]

template< class Key, class T > QDebug operator<< ( QDebug debug,
const QMultiMap< Key, T > & map )
related

Writes the contents of map to debug.

Both Key and T need to support streaming into QDebug.

Definition at line 267 of file qdebug.h.

◆ operator<<() [9/16]

template< typename T > QDebug operator<< ( QDebug debug,
const QSet< T > & set )
related

Writes the contents of set to debug.

T needs to support streaming into QDebug.

Definition at line 267 of file qdebug.h.

◆ operator<<() [10/16]

template< class T, qsizetype P > QDebug operator<< ( QDebug debug,
const QVarLengthArray< T, P > & array )
related
Since
6.3

Writes the contents of array to debug. T needs to support streaming into QDebug.

Definition at line 267 of file qdebug.h.

◆ operator<<() [11/16]

template< typename T, typename Alloc > QDebug operator<< ( QDebug debug,
const std::list< T, Alloc > & vec )
related
Since
5.7

Writes the contents of list vec to debug. T needs to support streaming into QDebug.

Definition at line 267 of file qdebug.h.

◆ operator<<() [12/16]

template< typename Key, typename T, typename Compare, typename Alloc > QDebug operator<< ( QDebug debug,
const std::map< Key, T, Compare, Alloc > & map )
related
Since
5.7

Writes the contents of map to debug. Both Key and T need to support streaming into QDebug.

Definition at line 267 of file qdebug.h.

◆ operator<<() [13/16]

template< typename Key, typename T, typename Compare, typename Alloc > QDebug operator<< ( QDebug debug,
const std::multimap< Key, T, Compare, Alloc > & map )
related
Since
5.7

Writes the contents of map to debug. Both Key and T need to support streaming into QDebug.

Definition at line 267 of file qdebug.h.

◆ operator<<() [14/16]

template< class T > QDebug operator<< ( QDebug debug,
const std::optional< T > & opt )
related
Since
6.7

Writes the contents of opt (or nullopt if not set) to debug. T needs to support streaming into QDebug.

Definition at line 267 of file qdebug.h.

◆ operator<<() [15/16]

template< class T1, class T2 > QDebug operator<< ( QDebug debug,
const std::pair< T1, T2 > & pair )
related

Writes the contents of pair to debug.

Both T1 and T2 need to support streaming into QDebug.

Definition at line 267 of file qdebug.h.

◆ operator<<() [16/16]

template< typename T, typename Alloc > QDebug operator<< ( QDebug debug,
const std::vector< T, Alloc > & vec )
related
Since
5.7

Writes the contents of vector vec to debug. T needs to support streaming into QDebug.

Definition at line 267 of file qdebug.h.


The documentation for this class was generated from the following files: