Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-16478 QtScript API changes for Qt 5
  3. QTBUG-16508

Introduce simplified API for retrieving property names ("keys") of a QScriptValue

    XMLWordPrintable

Details

    • Sub-task
    • Resolution: Invalid
    • Not Evaluated
    • 5.0.0
    • Qt Script
    • None

    Description

      Currently you have to use QScriptValueIterator, which is a bit "heavy" (hasNext(), next(), name(), ...).
      In the typical case, the number of properties isn't huge, so simply returning a list of property names would be fine.
      E.g.

      QStringList QScriptValue::propertyNames() const
      QStringList QScriptValue::ownPropertyNames() const

      Attachments

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

        Activity

          People

            kenthans Kent Hansen (Inactive)
            kenthans Kent Hansen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes