diff options
Diffstat (limited to 'src/corelib/doc/src/includes/qdebug-toString.qdocinc')
-rw-r--r-- | src/corelib/doc/src/includes/qdebug-toString.qdocinc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/corelib/doc/src/includes/qdebug-toString.qdocinc b/src/corelib/doc/src/includes/qdebug-toString.qdocinc new file mode 100644 index 0000000000..db1e1ab453 --- /dev/null +++ b/src/corelib/doc/src/includes/qdebug-toString.qdocinc @@ -0,0 +1,9 @@ +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(). |