Class QtLuaEngine is a QObject subclass representing a Lua interpreter. This object can be used to add a Lua interpreter to any Qt application with capabilities comparable to those of the QtScript language and additional support for multi-threaded execution.

Instances of this class can be in one of three state:

Class QtLuaEngine provides member functions to submit Lua strings to the interpreter and to collect the evaluation results. If these functions are invoked from the thread owning the Lua engine object, the Lua code is executed right away. Otherwise a thread hopping operation ensures that the execution of a Lua program happens in the thread owning the Lua engine object.

Class QtLuaLocker provides means to directly access the Lua state lua_State* using the Lua API.

Subsections

  1. Constructor
  2. Properties
  3. Signals
  4. Execution
  5. Miscellaneous