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

QDeclarativeView::setSource() fails with relative local file urls when correct absolute path contains at least one capital letter.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 4.8.x
    • None
    • Windows 7, Qt 4.8 beta

    Description

      Relative file path urls passed to QDeclarativeView::setSource( QUrl::fromLocalFile( "inCWD.qml" ) ) are expanded in QDeclarativeEngine::baseUrl() using QDir::currentPath(). QDir::currentPath() seems to return all lower case on Windows.

      However, paths are tested to be case matched in QDeclarative_isFileCaseCorrect(const QString &fileName) (private implementation) using different code from QDir::currentPath(). The win32 code in QDeclarative_isFileCaseCorrect does return the case sensitive path.

      Since the QDeclarative_isFileCaseCorrect() fails on paths constructed using QDeclarativeEngine::baseUrl() (containing captial letters) and QDeclarativeView::setSource() uses QDeclarativeEngine::baseUrl() for relative local file resolution QDeclarativeView::setSource() fails when used correctly.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            emmet Emmet Spier
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes