QScriptProgram Class ReferenceThe QScriptProgram class encapsulates a Qt Script program. More... #include <QScriptProgram> This class was introduced in Qt 4.7. Public Functions
Detailed DescriptionThe QScriptProgram class encapsulates a Qt Script program. QScriptProgram retains the compiled representation of the script if possible. Thus, QScriptProgram can be used to evaluate the same script multiple times more efficiently. QScriptEngine engine; QScriptProgram program("1 + 2"); QScriptValue result = engine.evaluate(program); Member Function DocumentationQScriptProgram::QScriptProgram ()Constructs a null QScriptProgram. QScriptProgram::QScriptProgram ( const QString & sourceCode, const QString fileName = QString(), int firstLineNumber = 1 )Constructs a new QScriptProgram with the given sourceCode, fileName and firstLineNumber. QScriptProgram::QScriptProgram ( const QScriptProgram & other )Constructs a new QScriptProgram that is a copy of other. QScriptProgram::~QScriptProgram ()Destroys this QScriptProgram. QString QScriptProgram::fileName () constReturns the filename associated with this program. int QScriptProgram::firstLineNumber () constReturns the line number associated with this program. bool QScriptProgram::isNull () constReturns true if this QScriptProgram is null; otherwise returns false. QString QScriptProgram::sourceCode () constReturns the source code of this program. bool QScriptProgram::operator!= ( const QScriptProgram & other ) constReturns true if this QScriptProgram is not equal to other; otherwise returns false. QScriptProgram & QScriptProgram::operator= ( const QScriptProgram & other )Assigns the other value to this QScriptProgram. bool QScriptProgram::operator== ( const QScriptProgram & other ) constReturns true if this QScriptProgram is equal to other; otherwise returns false. X
|
Попытка перевода Qt документации. Если есть желание присоединиться, или если есть замечания или пожелания, то заходите на форум: Перевод Qt документации на русский язык... Люди внесшие вклад в перевод: Команда переводчиков |