Function qmetaobject::connections::connect[][src]

pub unsafe fn connect<Args, F: Slot<Args>>(
    sender: *const c_void,
    signal: Signal<Args>,
    slot: F
) -> ConnectionHandle

Connect signal from sender object to a slot.

Similar to QMetaObject::Connection QObject::connect(const QObject *sender, PointerToMemberFunction signal, Functor functor), but not a direct wrapper.

Arguments:

  • Sender is a raw pointer to an instance of QObject subclass.
  • Signal is one of the signals of the sender. See Signal for more.
  • Slot can be any rust clojure FnMut with compatible argument count and types (functor-like slot).