#[repr(transparent)]pub struct ConnectionType {
pub repr: i32,
}
Expand description
This enum describes the types of connection that can be used with signals.
Note that UniqueConnection is not supported.
Fields§
§repr: i32
Implementations§
Source§impl ConnectionType
impl ConnectionType
Sourcepub const AutoConnection: Self
pub const AutoConnection: Self
If the receiver lives in the thread that emits the signal, Qt::DirectConnection is used. Otherwise, Qt::QueuedConnection is used. The connection type is determined when the signal is emitted.
Sourcepub const DirectConnection: Self
pub const DirectConnection: Self
The slot is invoked immediately when the signal is emitted. The slot is executed in the signalling thread.
Sourcepub const QueuedConnection: Self
pub const QueuedConnection: Self
The slot is invoked when control returns to the event loop of the receiver’s thread. The slot is executed in the receiver’s thread.
Sourcepub const BlockingQueuedConnection: Self
pub const BlockingQueuedConnection: Self
Same as Qt::QueuedConnection, except that the signalling thread blocks until the slot returns. This connection must not be used if the receiver lives in the signalling thread, or else the application will deadlock.