pub struct EventPriority(/* private fields */);
Expand description
This enum can be used to specify event priorities.
C++ enum: Qt::EventPriority
.
This enum can be used to specify event priorities.
Note that these values are provided purely for convenience, since event priorities can be any value between INT_MAX
and INT_MIN
, inclusive. For example, you can define custom priorities as being relative to each other:
enum CustomEventPriority { // An important event ImportantEventPriority = Qt::HighEventPriority,
// A more important event MoreImportantEventPriority = ImportantEventPriority + 1,
// A critical event CriticalEventPriority = 100 * MoreImportantEventPriority,
// Not that important StatusEventPriority = Qt::LowEventPriority,
// These are less important than Status events IdleProcessingDoneEventPriority = StatusEventPriority - 1 };
See also QCoreApplication::postEvent().
Implementations§
Source§impl EventPriority
impl EventPriority
Sourcepub const HighEventPriority: EventPriority
pub const HighEventPriority: EventPriority
Events with this priority are sent before events with NormalEventPriority or LowEventPriority. (C++ enum variant: HighEventPriority = 1
)
Sourcepub const NormalEventPriority: EventPriority
pub const NormalEventPriority: EventPriority
Events with this priority are sent after events with HighEventPriority, but before events with LowEventPriority. (C++ enum variant: NormalEventPriority = 0
)
Sourcepub const LowEventPriority: EventPriority
pub const LowEventPriority: EventPriority
Events with this priority are sent after events with HighEventPriority or NormalEventPriority. (C++ enum variant: LowEventPriority = -1
)
Trait Implementations§
Source§impl Clone for EventPriority
impl Clone for EventPriority
Source§fn clone(&self) -> EventPriority
fn clone(&self) -> EventPriority
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more