Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.7
-
None
-
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 |
553966,3 | QtQml: Fix documentation for createComponent() | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
554428,2 | QtQml: Fix documentation for createComponent() | 6.7 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
554514,2 | QtQml: Fix documentation for createComponent() | tqtc/lts-6.5 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | 0 |