Struct cxx_qt_lib::QQmlEngine
source · #[repr(C)]pub struct QQmlEngine { /* private fields */ }
Implementations§
source§impl QQmlEngine
impl QQmlEngine
sourcepub fn add_import_path(self: Pin<&mut Self>, path: &QString)
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
impl QQmlEngine
sourcepub fn add_plugin_path(self: Pin<&mut Self>, path: &QString)
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
impl QQmlEngine
source§impl QQmlEngine
impl QQmlEngine
sourcepub fn import_path_list(&self) -> QStringList
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
impl QQmlEngine
sourcepub fn plugin_path_list(&self) -> QStringList
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
impl QQmlEngine
sourcepub fn set_base_url(self: Pin<&mut Self>, url: &QUrl)
pub fn set_base_url(self: Pin<&mut Self>, url: &QUrl)
Set the base URL for this engine to url.
source§impl QQmlEngine
impl QQmlEngine
sourcepub fn set_import_path_list(self: Pin<&mut Self>, paths: &QStringList)
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
impl QQmlEngine
sourcepub fn set_plugin_path_list(self: Pin<&mut Self>, paths: &QStringList)
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.