Obsolete Members for QScriptValue
The following members of class QScriptValue are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.
Public Functions
(obsolete) | QScriptValue(QScriptEngine *engine, const char *value) |
(obsolete) | QScriptValue(QScriptEngine *engine, const QString &value) |
(obsolete) | QScriptValue(QScriptEngine *engine, qsreal value) |
(obsolete) | QScriptValue(QScriptEngine *engine, uint value) |
(obsolete) | QScriptValue(QScriptEngine *engine, int value) |
(obsolete) | QScriptValue(QScriptEngine *engine, bool value) |
(obsolete) | QScriptValue(QScriptEngine *engine, QScriptValue::SpecialValue value) |
(obsolete) bool | isBoolean() const |
(obsolete) bool | toBoolean() const |
(obsolete) QScriptValue | toObject() const |
Member Function Documentation
QScriptValue::QScriptValue(QScriptEngine *engine, const char *value)
This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Constructs a new QScriptValue with the string value and registers it with the script engine.
QScriptValue::QScriptValue(QScriptEngine *engine, const QString &value)
This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Constructs a new QScriptValue with the string value and registers it with the script engine.
QScriptValue::QScriptValue(QScriptEngine *engine, qsreal value)
This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Constructs a new QScriptValue with the qsreal value and registers it with the script engine.
QScriptValue::QScriptValue(QScriptEngine *engine, uint value)
This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Constructs a new QScriptValue with the unsigned integer value and registers it with the script engine.
QScriptValue::QScriptValue(QScriptEngine *engine, int value)
This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Constructs a new QScriptValue with the integer value and registers it with the script engine.
QScriptValue::QScriptValue(QScriptEngine *engine, bool value)
This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Constructs a new QScriptValue with the boolean value and registers it with the script engine.
QScriptValue::QScriptValue(QScriptEngine *engine, QScriptValue::SpecialValue value)
This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Constructs a new QScriptValue with the special value and registers it with the script engine.
bool QScriptValue::isBoolean() const
This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Use isBool() instead.
bool QScriptValue::toBoolean() const
This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Use toBool() instead.
QScriptValue QScriptValue::toObject() const
This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
This function is obsolete; use QScriptEngine::toObject() instead.
© 2020 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.