Details
-
Task
-
Resolution: Unresolved
-
P2: Important
-
6.8
-
None
-
5fc2bfd36 (dev), 31fbe8a19 (dev)
Description
Implement warnings in qmlls from QtC's codemodel for .ui.qml files
done to be done in progress won't do
- WarnImperativeCodeNotEditableInVisualDesigner
- WarnUnsupportedTypeInVisualDesigner
- WarnReferenceToParentItemNotSupportedByVisualDesigner
- WarnUndefinedValueForVisualDesigner
- WarnStatesOnlyInRootItemForVisualDesigner
- ErrUnsupportedRootTypeInVisualDesigner
- ErrInvalidIdeInVisualDesigner
- ErrUnsupportedRootTypeInQmlUi
- ErrUnsupportedTypeInQmlUi
- ErrFunctionsNotSupportedInQmlUi
- ErrBlocksNotSupportedInQmlUi
- ErrBehavioursNotSupportedInQmlUi
- ErrStatesOnlyInRootItemInQmlUi
- ErrReferenceToParentItemNotSupportedInQmlUi
- WarnDoNotMixTranslationFunctionsInQmlUi
Also, you can find all qtc codemodel warnings in qmljsstaticanalysismessage.cpp's StaticAnalysisMessages::StaticAnalysisMessages() and qmljsstaticanalysismessage.h definition of Type enum (each enum value corresponds to a warning, see also their description in the StaticAnalysisMessages::StaticAnalysisMessages() constructor!)
There is also some documentation about the restrictions on https://doc.qt.io/qtcreator/creator-quick-ui-forms.html
Attachments
Issue Links
- is duplicated by
-
QTBUG-126607 qmlls does not complain about limitations of .ui.qml files
- Closed
- is required for
-
QTBUG-119890 qmllint warnings: reach feature parity with QtCreator
- Reported
- relates to
-
QTBUG-129307 qmllint: implement .qml warnings from qmljsstaticanalysismessage.cpp
- Open
Gerrit Reviews
For Gerrit Dashboard: QTBUG-129308 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
572291,15 | RFC: Introduce qds qmllint plugin with ErrFunctionsNotSupportedInQmlUi | dev | qt/qtdeclarative | Status: NEW | 0 | 0 |
597676,5 | qmllint: warn about qsTr in .ui.qml files | dev | qt/qtdeclarative | Status: NEW | 0 | 0 |
597677,4 | qmllint: warn about unsupported bindings | dev | qt/qtdeclarative | Status: NEW | +1 | 0 |
598401,2 | qmllint: warn about unsupported component in .ui.qml files | dev | qt/qtdeclarative | Status: NEW | -1 | 0 |