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

Typo in QML Component Basic Type documentation

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P4: Low
    • None
    • 4.7.0, 4.8.0, 5.0.0, 5.1.0
    • Documentation
    • None

    Description

      There's a typo in Qt documentation for Qt Quick Basic QML Type - Component.
      Regarding the createObject() method, right before showcasing the setting object properties through

      {property:value}

      with the code there's a sentence:

      "For example, the code below creates an object with initial x and y values of 100 and 200, respectively:"

      But the code that is shown in example initializes both x and y values as 100.

      component.createObject(parent,

      {"x": 100, "y": 100}

      );

      Attachments

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

        Activity

          People

            vertries Nico Vertriest (Inactive)
            kraplax Eduard Sukharev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes