Qt object properties are automatically available using the Lua indexation syntax

Examples:

    widget.windowTitle="my window title"
    return widget.windowTitle

Properties are always manipulated from the thread owning the Qt object. If the Lua interpreter runs in a different thread, a thread hopping operation is performed for the duration of the operation.

Property values are always represented as Qt variant objects. They are automatically converted into Lua strings or Lua numbers when they are read. Conversely, Lua strings and Lua numbers are automatically converted into the desired type when a property is set.

Property values with enumerated types registered using the Qt macro Q_ENUMS are automatically converted into strings representing the enumerated names and conversely. Property values with flag types declared using the Qt macro Q_DECLARE_FLAGS and registered using Q_ENUMS are automatically converted into Lua string containing the relevant flag names separated by vertical bars.