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

Doc: Avoid using value type names as QML IDs

    XMLWordPrintable

Details

    Description

      https://doc.qt.io/qt-6/qtqml-documents-structure.html#valuetypebehavior explains that, when using `pragma ValueTypeBehavior: Addressable`, propoerties or IDs that are named after value types (such as "rect") become inaccessible.

      Our documentation currently contains many snippets with "id: rect" (one example is at https://doc.qt.io/qt-6/qml-qtquick-propertychanges.html#details ). It would be good to rename such instances so that the examples continue working when `pragma ValueTypeBehavior: Addressable` is used.

      Attachments

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

        Activity

          People

            qtqmlteam Qt Qml Team User
            skoh-qt Sze Howe Koh
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes