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

Default conversion between QVariant and QtScript Object

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes