Struct QObject
pub struct QObject { /* private fields */ }Expand description
The QObject class is the base class of all Qt objects.
Most methods available on this type are within the [cxx_qt_lib::QObjectExt] trait,
which needs to be imported in order to access these.
Qt Documentation: QObject
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for QObject
impl RefUnwindSafe for QObject
impl !Send for QObject
impl !Sync for QObject
impl !Unpin for QObject
impl UnsafeUnpin for QObject
impl UnwindSafe for QObject
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
§impl<T> QObjectExt for Twhere
T: Upcast<QObject>,
impl<T> QObjectExt for Twhere
T: Upcast<QObject>,
§fn block_signals(self: Pin<&mut T>, block: bool) -> bool
fn block_signals(self: Pin<&mut T>, block: bool) -> bool
If
block is true, signals emitted by this object are blocked (i.e., emitting a signal will not invoke anything connected to it). If block is false, no such blocking will occur. Read more§fn signals_blocked(&self) -> bool
fn signals_blocked(&self) -> bool
§fn set_object_name(self: Pin<&mut T>, name: &QString)
fn set_object_name(self: Pin<&mut T>, name: &QString)
Sets the object’s name to
name.§fn object_name(&self) -> QString
fn object_name(&self) -> QString
Returns the name of this object.
§fn set_parent<P>(self: Pin<&mut T>, parent: Pin<&mut P>)where
P: Upcast<QObject>,
fn set_parent<P>(self: Pin<&mut T>, parent: Pin<&mut P>)where
P: Upcast<QObject>,
Makes the object a child of
parent.§fn unset_parent(self: Pin<&mut T>)
fn unset_parent(self: Pin<&mut T>)
Makes the object parentless.