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

Component::createObject() confusing explanation of optional argument

    XMLWordPrintable

Details

    Description

      Docs about Component::createObject() are to be found here:
      http://qt-project.org/doc/qt-5.0/qtqml/qml-qtquick2-component.html#createObject-method
      or here:
      http://doc-snapshot.qt-project.org/5.0/qtqml/qml-qtquick2-component.html#createObject-method

      in both places it explains that "this method accepts an optional properties argument that specifies a map of initial property values for the created object" and "[...] also allows property bindings to be set up before the object is created."

      In fact, the values given in that argument are set as assignments, not bindings, so the documentation phrasing is somewhat misleading in that respect. It should be rewritten to clarify the actual behavior.

      Attachments

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

        Activity

          People

            416365416c Alan Alpert
            oneorjuan Juan Navarro
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes