Skip to main content

QQuickStyle

Struct QQuickStyle 

Source
pub struct QQuickStyle { /* private fields */ }
Expand description

The QQuickStyle class allows configuring the application style.

Qt Documentation: QQuickStyle

Implementations§

Source§

impl QQuickStyle

Source

pub fn name() -> QString

Available on crate feature qt_quickcontrols only.

Returns the name of the application style.

Note: The application style can be specified by passing a -style command line argument. Therefore this function may not return a fully resolved value if called before constructing a QGuiApplication.

Source

pub fn set_fallback_style(style: &QString)

Available on crate feature qt_quickcontrols only.

Sets the application fallback style to style.

Note: The fallback style must be the name of one of the built-in Qt Quick Controls styles, e.g. “Material”.

Note: The style must be configured before loading QML that imports Qt Quick Controls. It is not possible to change the style after the QML types have been registered.

The fallback style can be also specified by setting the QT_QUICK_CONTROLS_FALLBACK_STYLE environment variable.

Source

pub fn set_style(style: &QString)

Available on crate feature qt_quickcontrols only.

Sets the application style to style.

Note: The style must be configured before loading QML that imports Qt Quick Controls. It is not possible to change the style after the QML types have been registered.

Trait Implementations§

Source§

impl ExternType for QQuickStyle

Available on crate feature qt_quickcontrols only.
Source§

type Kind = Opaque

Source§

type Id

A type-level representation of the type’s C++ namespace and type name. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.