Expression qt.QTimer(parent) returns a new QTimer object created from the current thread. Argument parent optionally specifies its parent. Note that the parent object must belong to the current thread as well. When argument parent is not specified, the new timer is owned by the Lua interpreter and will be deleted by the Lua garbage collector when it is no longer referenced.