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

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

      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.

        1. qtquick1-test.zip
          15 kB
          Mitch Curtis
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes