If the Lua value arg represents a Qt object or variant, expression qt.type(arg) returns a string containing the type of the Qt data as if arg:type() had been called. Otherwise it simply returns nil.