Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-7593

qDebug() does not accept custom stream operators

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P4: Low
    • 4.6.2
    • 4.6.0
    • Documentation
    • None
    • Windows Vista + Qt SDK free edition 4.6.0
    • 0c822ea63a8b2b0c32c68a49de81e0c02548f059

    Description

      When reimplementing an operator<< according to the custom type example:

      QDebug &operator<<(QDebug &dbg, const Type &value);

      It is still not possible to use "qDebug() << value;" right away. Instead, I must write "qDebug() << "" << value;" to get the stream started.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            tmacieir Thiago Macieira (closed Nokia identity) (Inactive)
            e8johan Johan Thelin
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes