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

Confusing example code for Qt.createComponent

    XMLWordPrintable

Details

    • 6c9943117 (dev), 3b1fa2be1 (6.7), b060df576 (tqtc/lts-6.5)

    Description

      In https://doc.qt.io/qt-6/qml-qtqml-qt.html#createComponent-method-1 the example code doesn't look correct to me.

      I would have expected something likeĀ 

      Qt.createComponent("QtQuick", "Rectangle", Component.Asynchronous, root) 

      There is no module name given, and Rectangle has no quotation marks. Is that an oversight or intentional?

      Attachments

        For Gerrit Dashboard: QTBUG-124226
        # Subject Branch Project Status CR V

        Activity

          People

            ulherman Ulf Hermann
            nicolasfella Nicolas Fella
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes