Skip to content

fontlabapp.core.signals.connections

connections

Track exact Qt signal/slot pairs and drain them before owner destruction.

Cocoa and Vanilla adapters supply their existing mutable pair list and error route. This module imports no Qt binding, wraps no callback and owns no widget. Call it on the signal owner's UI thread. Callers retain callback/close policy and must supply slots supported by their Qt binding; this does not repair a native wrapper that is already invalid or cancel queued callback delivery.

Complete member index

Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.

Member Kind Signature Summary
Connections attribute
disconnect_connections function (connections: Connections, report: Callable[[Exception], Any]) -> None Pop in reverse order; report ordinary failures and continue draining.
track_connection function (connections: Connections, signal: Any, slot: Callable[..., Any]) -> None Connect first, then retain the exact pair; preserve duplicates and order.