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

QFile::canReadLine() always returns false

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P1: Critical P1: Critical
    • None
    • 4.7.4, 4.8.0, 4.8.2, 5.1.0 , 5.2.0, 5.3.1
    • Core: I/O
    • None
    • Linux, Windows

      QIODevice::canReadLine() always returns false if the object is a QFile, even if the file contains linefeed characters.
      E.g. the executable from the attached project always prints "Error: Cannot read line, but should be able to.".
      This happens with the current git heads of both 4.7 and 4.8 (a96672bc77642e3e5a030fd9e78f700b47e11ccb and 262444086fe949441aebb6c6726ba13c97476191, respectively).

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

            thiago Thiago Macieira
            kandeler Christian Kandeler
            Votes:
            6 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes