diff options
Diffstat (limited to 'src/corelib/io/qdebug.cpp')
| -rw-r--r-- | src/corelib/io/qdebug.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/corelib/io/qdebug.cpp b/src/corelib/io/qdebug.cpp index be106dae5e6..da5c6682bb5 100644 --- a/src/corelib/io/qdebug.cpp +++ b/src/corelib/io/qdebug.cpp @@ -1051,7 +1051,15 @@ QDebug &QDebug::resetFormat() \fn template <class T> QString QDebug::toString(const T &object) \since 6.0 - \include qdebug-toString.qdocinc + Streams \a object into a QDebug instance that operates on a string, + and then returns that string. + + This function is useful for cases where you need the textual representation + of an object for debugging, but cannot use \c {operator<<}. For example: + + \snippet code/src_corelib_io_qdebug.cpp toString + + The string is streamed using \l nospace(). \sa toBytes() */ |
