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

No example of how to use QML_NAMED_ELEMENT in documentation

    XMLWordPrintable

Details

    Description

      https://doc-snapshots.qt.io/qt5-5.15/qqmlengine.html#QML_NAMED_ELEMENT has no example of how the macro is actually used. https://doc-snapshots.qt.io/qt5-5.15/qtqml-cppintegration-definetypes.html#registering-an-instantiable-object-type just says:

      QML_NAMED_ELEMENT(<name>)

      I've already managed to pass in a string when it actually just needs the type name without quotes.

      We should have a code snippet for this.

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            mitch_curtis Mitch Curtis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes