Skip to content

PluginLoader

Qt Base Class: QPluginLoader

Signature: QPluginLoader(self, fileName: str, parent: Optional[PySide6.QtCore.QObject] = None) -> None QPluginLoader(self, parent: Optional[PySide6.QtCore.QObject] = None) -> None

Base classes

Name Children Inherits
ObjectMixin
prettyqt.core.object
QPluginLoader
PySide6.QtCore
QPluginLoader(self, fileName: str, parent: Optional[PySide6.QtCore.QObject] \= None) -> None

⋔ Inheritance diagram

graph TD
  1473299919456["core.PluginLoader"]
  1473299815024["core.ObjectMixin"]
  140713234304496["builtins.object"]
  1473288844192["QtCore.QPluginLoader"]
  1473288842240["QtCore.QObject"]
  1473291690208["Shiboken.Object"]
  1473299815024 --> 1473299919456
  140713234304496 --> 1473299815024
  1473288844192 --> 1473299919456
  1473288842240 --> 1473288844192
  1473291690208 --> 1473288842240
  140713234304496 --> 1473291690208

🛈 DocStrings

Bases: ObjectMixin, QPluginLoader

Load a plugin at runtime.

Source code in prettyqt\core\pluginloader.py
class PluginLoader(core.ObjectMixin, core.QPluginLoader):
    """Load a plugin at runtime."""

    def get_load_hints(self) -> list[core.library.LoadHintStr]:
        return core.library.LOAD_HINTS.get_list(self.loadHints())

    def set_load_hints(self, **kwargs):
        flag = core.QLibrary.LoadHint(0)  # type: ignore
        for k, v in kwargs.items():
            if v is True:
                flag |= core.library.LOAD_HINTS[k]  # type: ignore
        self.setLoadHints(flag)  # type: ignore

⌗ Property table

Qt Property Type Doc
objectName QString
fileName QString
loadHints QFlags