Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Behind the Scenes
  3. Wiki Discussion
  4. QTBUG-16062 Add list of reserved words not to be used as QML ids
QtWS25 Last Chance

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

Scheduled Pinned Locked Moved Unsolved Wiki Discussion
2 Posts 2 Posters 1.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • JarggohJ Offline
    JarggohJ Offline
    Jarggoh
    wrote on last edited by
    #1

    https://bugreports.qt.io/browse/QTBUG-16062
    Does there exist a list yet?
    The subject has been discussed a long time ago. Javascript reserved words is mentioned.
    Today I found out Designer does not like id: date, which is not listed as reserved JS word?

    Text {
             id: date
             text: "12.12.2012"
     }
    

    which gives warning: Line: 12: This id might be ambiguous and is not supported in Qt Design Studio. (M209)
    id: dateLabel is Ok ...

    Text {
             id: dateLabel
             text: "12.12.2012"
    

    }

    1 Reply Last reply
    1
    • kkoehneK Offline
      kkoehneK Offline
      kkoehne
      Moderators
      wrote on last edited by
      #2

      date is not a JS keyword, but a QML value type. But yeah, it would be good to have that more explicit in the documentation ...

      Director R&D, The Qt Company

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved