Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.7.2, 6.8
-
None
-
543b75fdc (dev), 5fd494d3b (6.8)
Description
We have a base class "ParameterizedColorControlsItemQml" that is part of qml module A:
class ParameterizedColorControlsItemQml : public QQuickPaintedItem { Q_OBJECT QML_ELEMENT public: Q_PROPERTY(QString colorTransferModel ...) };
Then a class "ParameterizedColorControlsItemQmlWithDialog" that inherits from "ParameterizedColorControlsItemQml" and is part of separate qml module B:
class ParameterizedColorControlsItemQmlWithDialog : public ParameterizedColorControlsItemQml { Q_OBJECT QML_ELEMENT // ... };
Module A is included in the "DEPENDENCIES" of module B.
However, when used in qml like this:
Column {
ParameterizedColorControlsItemQmlWithDialog {
colorTransferModel: "ColorTransferModel"
height: 160
width: parent.width
}
}
then qmllint doesn't complain about unresolved type, which is good, but it seems it doesn't see the base class and it's properties:
Warning: ColorControlsMenu.qml:120:21: Cannot assign to default property of incompatible type [incompatible-type] ParameterizedColorControlsItemQmlWithDialog { ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Warning: ColorControlsMenu.qml:125:25: Binding assigned to "colorTransferModel", but no property "colorTransferModel" exists in the current element. [missing-property] colorTransferModel: { ^^^^^^^^^^^^^^^^^^ Warning: ColorControlsMenu.qml:128:25: Binding assigned to "height", but no property "height" exists in the current element. [missing-property] height: 160 ^^^^^^ Warning: ColorControlsMenu.qml:129:25: Binding assigned to "width", but no property "width" exists in the current element. [missing-property] width: parent.width ^^^^^
Attachments
For Gerrit Dashboard: QTBUG-128820 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
598283,2 | qmltyperegistrar: Populate base type name even if not resolvable | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
598537,3 | qmltyperegistrar: Populate base type name even if not resolvable | 6.8 | qt/qtdeclarative | Status: MERGED | +2 | 0 |