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

Details

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

    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

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

          Activity

            People

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

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes