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.