QAxScriptEngine Class

The QAxScriptEngine class provides a wrapper around a script engine. More...

Header: #include <QAxScriptEngine>
qmake: QT += axcontainer
Inherits: QAxObject

Public Types

enum State { Uninitialized, Initialized, Started, Connected, Disconnected, Closed }

Detailed Description

Every instance of the QAxScriptEngine class represents an interpreter for script code in a particular scripting language. The class is usually not used directly. The QAxScript and QAxScriptManager classes provide convenient functions to handle and call script code.

Direct access to the script engine is provided through queryInterface().

Warning: This class is not available with the bcc5.5 compiler.

See also QAxScript, QAxScriptManager, QAxBase, and ActiveQt Framework.

Member Type Documentation

enum QAxScriptEngine::State

The State enumeration defines the different states a script engine can be in.

ConstantValueDescription
QAxScriptEngine::Uninitialized0The script has been created, but not yet initialized
QAxScriptEngine::Initialized5The script has been initialized, but is not running
QAxScriptEngine::Started1The script can execute code, but does not yet handle events
QAxScriptEngine::Connected2The script can execute code and is connected so that it can handle events
QAxScriptEngine::Disconnected3The script is loaded, but is not connected to event sources
QAxScriptEngine::Closed4The script has been closed.