class
Bindgen::CallBuilder::CppQobjectConnect
- Bindgen::CallBuilder::CppQobjectConnect
- Reference
- Object
Overview
Builds a QObject::connect sequence.
The connection gets a context object and a connection type, which the
context-less functor overload of QObject::connect lacks: that one
always calls the functor on the emitting thread, as a direct connection.
The context is the application object, so an Qt::AutoConnection from a
Qt thread is queued to the main thread, the only thread allowed to run
Crystal code. Before there is an application, the sender is the context.
The connection type is an argument of the connection method.
Defined in:
bindgen/call_builder/cpp_qobject_connect.crConstant Summary
-
CONTEXT =
"QCoreApplication::instance() ? static_cast<QObject *>(QCoreApplication::instance()) : static_cast<QObject *>(_self_)" -
The context object of the connection: The application, else the sender.
Constructors
Instance Method Summary
-
#build(method : Parser::Method, proc, connection_type : String)
Builds the connection of the signal method to the lambda proc.
Constructor Detail
Instance Method Detail
Builds the connection of the signal method to the lambda proc.
connection_type names the C++ argument holding the
Qt::ConnectionType.