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

Default conversion between QVariant and QtScript Object

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Done
    • Icon: P1: Critical P1: Critical
    • 4.7.0
    • 4.4.3
    • Qt Script
    • None
    • d8d547b92e02546cb030ac9d4a45fe0d89e0e7f6

      Currently, if you call QScriptValue::toVariant() on an Array object, you get back a QVariant containing a QScriptValue containing the array, i.e. an opaque QVariant. Perhaps Qt Script could convert the Array to a QVariantList instead; this would be more useful. Similarly, a plain object could be converted to a QVariantMap. qScriptValueFromValue() should do the conversion the other way.

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

            kenthans Kent Hansen (Inactive)
            ezf ezf
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes