Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
4.7.1
-
None
Description
When QDeclarativeView::setSource() is used to create QML Components, additional qml components in the same directory are not found or parsed. This is inconsistent with the qmlviewer behaviour, where they are.
In the attached example, with the same two QML files, "example.qml" and "Button.qml" in the same directory, where example.qml includes a Button component.
The Button component is displayed correctly using qmlviewer, but a trivial c++ program that creates and displays the example.qml complains that Button is not a valid class:
file:example.qml:10:5: Button is not a type
Button {
^