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

[REG 5.5 -> 5.6.0 RC] QFileSystemModel reports incorrect QFileInfo

XMLWordPrintable

    • acf43c17b647cdbfc3186bb8bf7e183df67a090b

      QFileSystemModel::fileInfo() returns incorrect QFileInfo for the root path after first setting the root path to some directory and then setting it to the parent directory:

      QFileSystemModel model;
      model.setRootPath("/usr/bin");
      QModelIndex idx = model.setRootPath("/usr");
      qDebug() << model.fileInfo(idx).absoluteFilePath(); // prints "/usr/bin" but must print "/usr"
      

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

            avolkov Alexander Volkov
            avolkov Alexander Volkov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes