Obsolete Members for QScriptValue

以下成員源於類 QScriptValue 已過時。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。

公共函數

(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

成員函數文檔編製

QScriptValue:: QScriptValue ( QScriptEngine * engine , const char * value )

此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。

Constructs a new QScriptValue with the string value and registers it with the script engine .

QScriptValue:: QScriptValue ( QScriptEngine * engine , const QString & value )

此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。

Constructs a new QScriptValue with the string value and registers it with the script engine .

QScriptValue:: QScriptValue ( QScriptEngine * engine , qsreal value )

此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。

Constructs a new QScriptValue with the qsreal value and registers it with the script engine .

QScriptValue:: QScriptValue ( QScriptEngine * engine , uint value )

此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。

Constructs a new QScriptValue with the unsigned integer value and registers it with the script engine .

QScriptValue:: QScriptValue ( QScriptEngine * engine , int value )

此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。

Constructs a new QScriptValue with the integer value and registers it with the script engine .

QScriptValue:: QScriptValue ( QScriptEngine * engine , bool value )

此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。

Constructs a new QScriptValue with the boolean value and registers it with the script engine .

QScriptValue:: QScriptValue ( QScriptEngine * engine , QScriptValue::SpecialValue value )

此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。

Constructs a new QScriptValue with the special value and registers it with the script engine .

bool QScriptValue:: isBoolean () const

此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。

使用 isBool () 代替。

bool QScriptValue:: toBoolean () const

此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。

使用 toBool () 代替。

QScriptValue QScriptValue:: toObject () const

此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。

This function is obsolete; use QScriptEngine::toObject () 代替。