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

Docs for QML variant claims one can use JSON notation

    XMLWordPrintable

Details

    • 3ebbb660d6f0c29b438f49dc8187b1b353ee1b8a

    Description

      The docs for QML variant type (http://doc.qt.nokia.com/4.7-snapshot/qml-variant.html) says: "The variant type can also hold a copy of a JavaScript object. For example, the animal property below defines a JavaScript object defined with JSON notation".

      The animal property below is:

      property variant animal :

      { 'type': 'bird', 'species': 'galah', 'age': 7 }

      However, the result of this expression is undefined. Is this a QML or documentation bug?

      Attachments

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

        Activity

          People

            bealam Bea Lam (closed Nokia identity) (Inactive)
            dm Geir Vattekar
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes