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

bool QFileInfo::isWritable () const platform differences

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P4: Low
    • Some future release
    • 4.3.2
    • Core: I/O
    • None

    Description

      This app will print true on windows and false on x11/mac

      #include <QFileInfo>
      #include <QDebug>
      int main()
      {
      QFileInfo file("filethatdoesn'texist");
      qDebug() << file.isWritable();
      return 0;
      }

      Update: As a workaround, you can check file.exists() first.

      Attachments

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

        Activity

          People

            biochimia João Abecasis
            rve Anders Bakken
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes