Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-26840

Capitalized properties used or declared in QML do not show an error or warning in the code view

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • Qt Creator 6.0.1, Qt Creator 6.0.2
    • Quick / QML Support
    • None
    • All

      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.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qtqmlteam Qt Qml Team User
            peter.rohles Peter Rohles
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes