Details
-
Task
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.8
-
None
-
704ce91eb (dev), 8d6796c14 (6.9), 39c761ac7 (6.8)
Description
Make qmlls working on all examples, such that users can open the example projects in Qt Creator without getting submerged by bogus and real warnings.
(note: current state are the examples from Qt 6.8.2)
QML examples ( tick = ok,
= not qmllint clean,
= has bogus warnings,
= has real warnings)
- applicationmanager:
(the imports are also not recognized in the embedded code model)
- axishandling:
- charts with qml gallery
- desktop system UI example
- filesystemexplorer:
needs
DEPENDENCIES
QtQml.Models - geojson_viewer
- mapviewer
- location/itemview_transitions
- minimal_map
- abstractitemmodel example
- objectlistmodel
- photosurface
- places
- places list
- places map
- planespotter
- samegame1
- samegame2
- samegame3
- samegame4
- declarative_camara
- dynamicview1- 4
- mediaplayer
- uses directory import "content"
- qmlpreviewer
- qmlvideoexample
- qmlvideorecorder
- qmlwebsocketclient
- does not use qt_add_qml_module, gets warnings:
/Users/sami/Qt/6.8.2/macos/qml/QtWebSockets/plugins.qmltypes:15:37: Meta object revision and export version differ.
Revision 0 corresponds to version 0.0; it should be 1.0.
/Users/sami/Qt/6.8.2/macos/qml/QtWebSockets/plugins.qmltypes:15:40: Meta object revision and export version differ.
Revision 1 corresponds to version 0.1; it should be 1.1.
/Users/sami/Qt/6.8.2/macos/qml/QtWebSockets/plugins.qmltypes:67:37: Meta object revision and export version differ.
Revision 0 corresponds to version 0.0; it should be 1.0.
[import] - should be fixed in QtWebSockets
- does not use qt_add_qml_module, gets warnings:
- qmlwebsocketserver
- qmloscilloscope
- qmlweather
- qt3d multiview port
(real warning but the problem is in the Qt3D.extras module, not the example)
- Qt3D.extras needs to be fixed (QTBUG-106079)
- InputSettings not found
- qt3d pbr materials
- can't assign string to QColor - bogus warning
- InputSettings not found
- Qt3D.extras needs to be fixed (QTBUG-106079)
- qt3d simple custom material
- bogus warnings: wrong parent is found:
Member "fragment" not found on type "Qt3DCore::QNode" [missing-property]
Member "vertex" not found on type "Qt3DCore::QNode" [missing-property] - Qt3D.extras needs to be fixed (QTBUG-106079)
- bogus warnings: wrong parent is found:
- qt3d simple example
- Qt3D.extras needs to be fixed (QTBUG-106079)
- qt3d wireframe example
- Qt3D.extras needs to be fixed (QTBUG-106079)
- qt interface framework generator
(no qt_add_qml_module)
- does not use qt_add_qml_module
- quick3d custom geometry
- quick3d procedural texture
- contactlist
- example broken: two ContactModel (one in QML and one in C++ defined)
- flatstyle
(no qt_add_qml_module)
- example broken: does not use qt_add_qml_module for the QML modules in the subfolders, only for the "main" QML module
- clocks
- restful api client
- rssnews
- qtquick examples animation
- qtquick example canvas
- drag and drop
- image elements
- keyinteractions
- localstorage
- mousearea
- positioners
- text
- views
- window and screen
- qt quick i18n
- particle affectors
- particle emitters
- image particles
- particles - system
- conway game of life
- pixelator
- missing DEPENDENCIES QtQml.Models
- water pump
- quickwidget
- chat client
- QtWebSockets is broken
/Users/sami/Qt/6.8.2/macos/qml/QtWebSockets/plugins.qmltypes:15:37: Meta object revision and export version differ.
Revision 0 corresponds to version 0.0; it should be 1.0.
/Users/sami/Qt/6.8.2/macos/qml/QtWebSockets/plugins.qmltypes:15:40: Meta object revision and export version differ.
Revision 1 corresponds to version 0.1; it should be 1.1.
/Users/sami/Qt/6.8.2/macos/qml/QtWebSockets/plugins.qmltypes:67:37: Meta object revision and export version differ.
Revision 0 corresponds to version 0.0; it should be 1.0.
[import]
- QtWebSockets is broken
- traffic light dynamic
- traffic light simple + static
- during compilation:
Warning: trafficlight-qml.h:12: TrafficLightStateMachine is declared as foreign type, but cannot be found.
Warning: trafficlight-qml.h:12: Refusing to generate non-lowercase name TrafficLightStateMachine for unknown foreign type
□ leads to 'TrafficLightStateMachine' is used but it is not resolved [unresolved-type] in qmlls
- during compilation:
- samegame
- satellite info
- direct3d 11 qml + metal qml + opengl + RHI + Vulkan
- missing DEPENDENCIES QtQuick
- simple bar graph
- bogus warning in JS method when using untyped parameter:
Member "x" not found on type "undefined" [missing-property]
- bogus warning in JS method when using untyped parameter:
- simple scatter graph
- todolist
- qmlls can't find the ToDoList import
- vectorimage
- 'VectorImage' is used but it is not resolved [unresolved-type]
- also, it seems there is a DEPENDENCIES QtQuick missing in QtQuick.VectorImage it seems...
- virtualassistent
- can't find the robotassistant QML module
- waterpump
- doesn't use qt_add_qml_module
- weatherinfo
- nano browser
TL;DR:
- 15 examples have true positive warnings
- 12 examples have bogus warnings
- 23 examples have qmllint warnings (unqualified access & friends)
- 33 examples are ok
- from 76 qml examples (found via QtC's example search with "QML")
Attachments
Issue Links
- depends on
-
QTBUG-106079 qmllint produces warnings from Qt3D imports and components
-
- In Progress
-
- resulted from
-
QTCREATORBUG-32591 qmlls still not work in qt creator
-
- Closed
-
Gerrit Reviews
For Gerrit Dashboard: QTBUG-134589 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
631847,4 | VectorImage example: Fix qmllint warnings | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
632264,2 | VectorImage example: Fix qmllint warnings | 6.9 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
634756,2 | VectorImage example: Fix qmllint warnings | 6.8 | qt/qtdeclarative | Status: MERGED | +2 | 0 |