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

QFile::resize() documentation is flawed.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P4: Low
    • 5.4.0 RC
    • 4.8.6, 5.4.0 Beta
    • Documentation
    • None
    • Linux.
    • Change-Id: I52ad75f895f41b109f0496863930ffaa1650447c

    Description

      Please remove "if the file" from the second sentence.

      bool QFile::resize ( qint64 sz )
      Sets the file size (in bytes) sz. Returns true if the file if the resize succeeds; false otherwise. If sz is larger than the file currently is the new bytes will be set to 0, if sz is smaller the file is simply truncated.

      See also size() and setFileName().

      Attachments

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

        Activity

          People

            leenam Leena Miettinen
            textbrowser Alexis Megas
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes