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

QTextStreamFunction is undocumented

XMLWordPrintable

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

      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; }
      

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes