|
(Note that these are not member functions.)
|
template< class T > QDebug | operator<< (QDebug debug, const QList< T > &list) |
|
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) |
|
template< class Key, class T > QDebug | operator<< (QDebug debug, const QMap< Key, T > &map) |
|
template< class Key, class T > QDebug | operator<< (QDebug debug, const QMultiMap< Key, T > &map) |
|
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) |
|
template< class Key, class T > QDebug | operator<< (QDebug debug, const QMultiHash< Key, T > &hash) |
|
template< class T1, class T2 > QDebug | operator<< (QDebug debug, const QPair< T1, T2 > &pair) |
|
template< class T1, class T2 > QDebug | operator<< (QDebug debug, const std::pair< T1, T2 > &pair) |
|
template< typename T > QDebug | operator<< (QDebug debug, const QContiguousCache< T > &cache) |
|
template< typename T > QDebug | operator<< (QDebug debug, const QFlags< T > &flags) |
|
The QDebug class provides an output stream for debugging information.
\inmodule QtCore
QDebug is used whenever the developer needs to write out debugging or tracing information to a device, file, string or console.
Definition at line 64 of file qdebug.h.
Writes the byte array, t, to the stream and returns a reference to the stream. Normally, QDebug prints the array inside quotes and transforms control or non-US-ASCII characters to their C escape sequences (\xAB). This way, the output is always 7-bit clean and the string can be copied from the output and pasted back into C++ sources, if necessary.
To print non-printable characters without transformation, enable the noquote() functionality. Note that some QDebug backends might not be 8-bit clean.
Output examples:
Note how QDebug needed to close and reopen the string in the way C and C++ languages concatenate string literals so that the letter 'b' is not interpreted as part of the previous hexadecimal escape sequence.
Definition at line 150 of file qdebug.h.
Writes the string, t, to the stream and returns a reference to the stream. Normally, QDebug prints the string inside quotes and transforms non-printable characters to their Unicode values (\u1234).
To print non-printable characters without transformation, enable the noquote() functionality. Note that some QDebug backends might not be 8-bit clean.
Output examples:
Definition at line 145 of file qdebug.h.
- Since
- 6.0
Writes the data of the observed byte array, t, to the stream and returns a reference to the stream.
Normally, QDebug prints the data inside quotes and transforms control or non-US-ASCII characters to their C escape sequences (\xAB). This way, the output is always 7-bit clean and the string can be copied from the output and pasted back into C++ sources, if necessary.
To print non-printable characters without transformation, enable the noquote() functionality. Note that some QDebug backends might not be 8-bit clean.
See the QByteArray overload for examples.
Definition at line 151 of file qdebug.h.
Writes the character, t, to the stream and returns a reference to the stream. Normally, QDebug prints control characters and non-US-ASCII characters as their C escape sequences or their Unicode value (\u1234). To print non-printable characters without transformation, enable the noquote() functionality, but note that some QDebug backends may not be 8-bit clean and may not be able to represent t
.
Definition at line 127 of file qdebug.h.
Writes the string, t, to the stream and returns a reference to the stream. Normally, QDebug prints the string inside quotes and transforms non-printable characters to their Unicode values (\u1234).
To print non-printable characters without transformation, enable the noquote() functionality. Note that some QDebug backends might not be 8-bit clean.
See the QString overload for examples.
Definition at line 149 of file qdebug.h.
- Since
- 5.10
Writes the string view, s, to the stream and returns a reference to the stream. Normally, QDebug prints the string inside quotes and transforms non-printable characters to their Unicode values (\u1234).
To print non-printable characters without transformation, enable the noquote() functionality. Note that some QDebug backends might not be 8-bit clean.
See the QString overload for examples.
Definition at line 147 of file qdebug.h.
- Since
- 6.0
Writes the string view, s, to the stream and returns a reference to the stream.
Normally, QDebug prints the data inside quotes and transforms control or non-US-ASCII characters to their C escape sequences (\xAB). This way, the output is always 7-bit clean and the string can be copied from the output and pasted back into C++ sources, if necessary.
To print non-printable characters without transformation, enable the noquote() functionality. Note that some QDebug backends might not be 8-bit clean.
Definition at line 148 of file qdebug.h.