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

Using QTextStream's endl with x field width will generate blank characters in front of the outputted word

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P3: Somewhat important
    • Some future release
    • 4.3.3
    • Core: I/O
    • None

    Description

      Using QTextStream's endl with x field width will generate blank characters in front of the outputted word.

      Example:
      QTextStream stream( stdout );
      stream.setFieldAlignment(QTextStream::AlignLeft);
      stream.setFieldWidth(20);
      stream << "test" << endl;
      stream << "test" << endl;

      output:
      test
      test

      Attachments

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

        Activity

          People

            stormols Marius Storm-Olsen
            admin Administrator
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes