Details
-
Bug
-
Resolution: Duplicate
-
P2: Important
-
6.4.0
Description
Implicitly wrapped Components do not work when inside an inline component.
The example file xxx.qml (see attachment) produces the error
samis-MacBook-Pro ~/projects/qt-star-build: 7630 ± qtbase/bin/qml /tmp/xxx.qml QQmlApplicationEngine failed to load component file:///tmp/xxx.qml:9:33: Cannot assign object of type "Rectangle" to property of type "QQmlComponent*" as the former is neither the same as the latter nor a sub-class of it. qml: Did not load any objects, exiting.
The same implicit wrapping works fine when outside an inline component.
Attachments
Issue Links
- duplicates
-
QTBUG-98859 Implicit conversion to Component doesn't work in inline components
-
- Closed
-