Struct cxx_qt_lib::QQmlEngine

source ·
#[repr(C)]
pub struct QQmlEngine { /* private fields */ }

Implementations§

source§

impl QQmlEngine

source

pub fn add_import_path(self: Pin<&mut Self>, path: &QString)

Adds path as a directory where the engine searches for installed modules in a URL-based directory structure.

source§

impl QQmlEngine

source

pub fn add_plugin_path(self: Pin<&mut Self>, path: &QString)

Adds path as a directory where the engine searches for native plugins for imported modules (referenced in the qmldir file).

source§

impl QQmlEngine

source

pub fn base_url(&self) -> QUrl

Return the base URL for this engine. The base URL is only used to resolve components when a relative URL is passed to the QQmlComponent constructor.

source§

impl QQmlEngine

source

pub fn import_path_list(&self) -> QStringList

Returns the list of directories where the engine searches for installed modules in a URL-based directory structure.

source§

impl QQmlEngine

source

pub fn plugin_path_list(&self) -> QStringList

Returns the list of directories where the engine searches for native plugins for imported modules (referenced in the qmldir file).

source§

impl QQmlEngine

source

pub fn set_base_url(self: Pin<&mut Self>, url: &QUrl)

Set the base URL for this engine to url.

source§

impl QQmlEngine

source

pub fn set_import_path_list(self: Pin<&mut Self>, paths: &QStringList)

Sets paths as the list of directories where the engine searches for installed modules in a URL-based directory structure.

source§

impl QQmlEngine

source

pub fn set_plugin_path_list(self: Pin<&mut Self>, paths: &QStringList)

Sets the list of directories where the engine searches for native plugins for imported modules (referenced in the qmldir file) to paths.

source§

impl QQmlEngine

source

pub fn new() -> UniquePtr<Self>

Create a new QQmlEngine

Trait Implementations§

source§

impl ExternType for QQmlEngine

§

type Kind = Opaque

§

type Id

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

impl UniquePtrTarget for QQmlEngine

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>,

§

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>,

§

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.