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

Regression in QDir::absoluteFilePath() when dir is set to resource path

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical P1: Critical
    • 4.8.0
    • 4.8.0
    • Core: I/O
    • None
    • c7748b7838522ec38ec01423f1267acf1f163606

      Run the following under 4.7 and master:

      #include <QtCore/QDir>
      #include <QDebug>

      int main(int argc, char *argv[])
      {
      QDir dir(QLatin1String(":/prefix/"));
      qDebug() << dir.absoluteFilePath(QLatin1String("foo.bar"));
      return 0;
      }

      Under 4.7 I get the expected:
      ":/prefix/foo.bar"

      Under master I get buggy:
      "/home/jkobus/test/absoluteFilePath-build-desktop/:/prefix/foo.bar"

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

            biochimia João Abecasis
            jkobus Jarek Kobus
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes