pub struct QtToolQmlCacheGen { /* private fields */ }Expand description
A wrapper around the qmlcachegen tool
Implementations§
Source§impl QtToolQmlCacheGen
impl QtToolQmlCacheGen
Sourcepub fn new(qt_installation: &dyn QtInstallation) -> Self
pub fn new(qt_installation: &dyn QtInstallation) -> Self
Construct a QtToolQmlCacheGen from a given QtInstallation
Sourcepub fn compile(
&self,
common_args: QmlCacheArguments,
file: impl AsRef<Path>,
) -> QmlCacheProducts
pub fn compile( &self, common_args: QmlCacheArguments, file: impl AsRef<Path>, ) -> QmlCacheProducts
Run qmlcachegen for a given qml file
Sourcepub fn compile_loader(
&self,
common_args: QmlCacheArguments,
qml_resource_paths: &[String],
) -> PathBuf
pub fn compile_loader( &self, common_args: QmlCacheArguments, qml_resource_paths: &[String], ) -> PathBuf
Compile a loader for given qml resource paths