Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-16062

Add list of reserved words not to be used as QML ids

    XMLWordPrintable

Details

    Description

      http://doc.trolltech.com/4.7/qdeclarativeintroduction.html says about QML ids:

      Note that an id must begin with a lower-case letter or an underscore, and cannot contain characters other than letters, numbers and underscores.
      

      But actually also any JavaScript keywords are forbidden, and 'as' (reserved keyword specifically in QML, I'm not sure whether there are also others).

      List of JavaScript keywords can be found in https://developer.mozilla.org/en/JavaScript/Reference/Reserved_Words or http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-262.pdf

      Attachments

        Issue Links

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

          Activity

            People

              docteam Qt Documentation Team
              kkohne Kai Köhne
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes