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

QTextStreamFunction is undocumented

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P5: Not important
    • None
    • 5.1.0
    • Documentation
    • None

    Description

      The documentation page for QTextStream contains examples of type (stream << left). However, neither that page nor any other page provides any explanation why such syntax is valid.

      These operators should be documented:
      Ok, the problem is that these operators are undocumented in QTextStream:

      qtextstream.h
      inline QTextStream &operator>>(QTextStream &s, QTextStreamFunction f)
      { return (*f)(s); }
      
      inline QTextStream &operator<<(QTextStream &s, QTextStreamFunction f)
      { return (*f)(s); }
      
      inline QTextStream &operator<<(QTextStream &s, QTextStreamManipulator m)
      { m.exec(s); return s; }
      

      Attachments

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

        Activity

          People

            docteam Qt Documentation Team
            yecril71pl Christopher Yeleighton
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes