Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.4.0 RC1
-
-
e9155711f (dev), f8091d321 (6.5), 9abd54590 (dev), ebbbe3ce0 (6.5)
Description
When passing a custom QList to qml:
typedef QList<QColor> ColorList; Q_DECLARE_METATYPE(ColorList) void main() { //... qRegisterMetaType<ColorList>("ColorList"); } class MyClass : QObject { QML_ELEMENT Q_PROPERTY(ColorList colors) };
then qmlint shows this warning:
:-1: error: Example.qml:47:28: Type "ColorList" of property "colors" not found. This is likely due to a missing dependency entry or a type not being exposed declaratively.
Replacing "ColorList" with "QVariantList" removes this error but then also the type information (e.g. "QColor") is lost in Qml.
Attachments
Issue Links
- resulted in
-
QTBUG-106886 QtLocation cannot be used with qmlsc in direct mode
- Closed
-
QTBUG-106887 CMake does not pass --private-includes to qmltyperegistrar if the QML module target is the private library itself
- Closed
-
QTBUG-110469 "Extending QML" example: Cover QML_SEQUENTIAL_CONTAINER
- Closed