pub struct QTime { /* private fields */ }Expand description
Wrapper around QTime class.
Implementations§
Source§impl QTime
impl QTime
Sourcepub fn from_h_m_s_ms(h: i32, m: i32, s: Option<i32>, ms: Option<i32>) -> QTime
pub fn from_h_m_s_ms(h: i32, m: i32, s: Option<i32>, ms: Option<i32>) -> QTime
Wrapper around QTime(int h, int m, int s = 0, int ms = 0) constructor.
§Wrapper-specific
Default arguments converted to Options.
Sourcepub fn get_hour(&self) -> i32
pub fn get_hour(&self) -> i32
Wrapper around QTime::hour() method.
Sourcepub fn get_minute(&self) -> i32
pub fn get_minute(&self) -> i32
Wrapper around QTime::minute() method.
Sourcepub fn get_second(&self) -> i32
pub fn get_second(&self) -> i32
Wrapper around QTime::second() method.
Sourcepub fn get_msec(&self) -> i32
pub fn get_msec(&self) -> i32
Wrapper around QTime::msec() method.
Sourcepub fn get_h_m_s_ms(&self) -> (i32, i32, i32, i32)
pub fn get_h_m_s_ms(&self) -> (i32, i32, i32, i32)
Convenience function for obtaining the hour, minute, second and millisecond components.
Sourcepub fn is_valid(&self) -> bool
pub fn is_valid(&self) -> bool
Wrapper around QTime::isValid() method.
Trait Implementations§
impl Copy for QTime
impl Eq for QTime
Source§impl Ord for QTime
impl Ord for QTime
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for QTime
impl PartialOrd for QTime
Source§impl QMetaType for QTime
impl QMetaType for QTime
fn id() -> i32
Source§fn to_qvariant(&self) -> QVariant
fn to_qvariant(&self) -> QVariant
Returns a QVariant containing a copy of this object
Source§fn from_qvariant(variant: QVariant) -> Option<Self>
fn from_qvariant(variant: QVariant) -> Option<Self>
Attempt to convert from a QVariant to this type.
Source§const CONVERSION_TO_STRING: Option<fn(&Self) -> QString> = None
const CONVERSION_TO_STRING: Option<fn(&Self) -> QString> = None
If this is set to a function, it enable the conversion to and from QString
const CONVERSION_FROM_STRING: Option<fn(&QString) -> Self> = None
Auto Trait Implementations§
impl Freeze for QTime
impl RefUnwindSafe for QTime
impl Send for QTime
impl Sync for QTime
impl Unpin for QTime
impl UnsafeUnpin for QTime
impl UnwindSafe for QTime
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more