pub struct QmlPluginCppBuilder { /* private fields */ }Expand description
A builder for representing a QML Extension Plugin C++ code
Implementations§
Source§impl QmlPluginCppBuilder
impl QmlPluginCppBuilder
Sourcepub fn new(uri: QmlUri, plugin_class_name: impl Into<String>) -> Self
pub fn new(uri: QmlUri, plugin_class_name: impl Into<String>) -> Self
Construct a QmlPluginCppBuilder from a uri and plugin class name
Sourcepub fn plugin_type(self, plugin_type: PluginType) -> Self
pub fn plugin_type(self, plugin_type: PluginType) -> Self
Whether this is a static or dynamic plugin
Note: For static plugins the QT_STATICPLUGIN definition should be set when compiling, for dynamic plugins the QT_PLUGIN definition should be set when compiling. See also: https://doc.qt.io/qt-6/plugins-howto.html#creating-static-plugins
Note: There can only be one dynamic plugin per dynamic library!