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