Details
-
Type:
Bug
-
Status: Open
-
Priority:
P2: Important
-
Resolution: Unresolved
-
Affects Version/s: Qt Creator 6.0.1, Qt Creator 6.0.2
-
Fix Version/s: None
-
Component/s: Quick / QML Support
-
Labels:None
-
Platform/s:
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
-