public static bool Connect(QObject obj, string signal, SlotFunc d) { // allocate a gchandle so the delegate won't be collected IntPtr handle = (IntPtr)GCHandle.Alloc(d); return(ConnectDelegate((IntPtr)GCHandle.Alloc(obj), signal, d, handle)); }
public static bool Disconnect <T1, T2, T3, T4>(QObject obj, string signal, SlotFunc <T1, T2, T3, T4> d) { return(DisconnectDelegate((IntPtr)GCHandle.Alloc(obj), signal, d)); }
public static bool Connect <T1, T2, T3, T4, T5>(QObject obj, string signal, SlotFunc <T1, T2, T3, T4, T5> d) { IntPtr handle = (IntPtr)GCHandle.Alloc(d); return(ConnectDelegate((IntPtr)GCHandle.Alloc(obj), signal, d, handle)); }