Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
Qt Creator 6.0.1, Qt Creator 6.0.2
-
None
Description
Properties in QML are not allowed to start with a capital letter. The QML runtime will error out if it encounters properties declared in QML that begin with a capital letter, but QtCreator does not show any kind of warning or error in its code view.
QtCreator should show an error when a property declared in QML begins with a capital letter and should probably also show a warning for a QObject property with a capital letter in the beginning letting the user know that this is not allowed in QML.
This is related to https://bugreports.qt.io/browse/QTBUG-99638 in that QObject properties declared in C++ should also produce an error in when used in QML at runtime.
Attachments
Issue Links
- relates to
-
QTBUG-99638 Capitalized properties used in QML that come from C++ do not error on runtime
-
- Reported
-