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

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

    XMLWordPrintable

Details

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

    Description

      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"

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes