Loading QPA plugin from Python
Unsolved
Qt for Python
-
Hello,
does anybody know how to load a QPA plugin from inside Python?
I couldn't find any documentation for this, only how to load the plugin with
qml ... -plugin ...
directly, googling this problem only yields searches regarding errors.I've already tried the QPluginLoader, which didn't work:
engine = QQmlApplicationEngine() engine.rootContext().setContextProperty("synthesizer", synthesizer) engine.load(Path(__file__).resolve().parent / "main.qml") tuio = QPluginLoader("TuioTouch") # <- this is the name of the plugin, don't know what else to put here tuio.load() # -> doesn't load the plugin :(
and then tried to load the plugin via environment variable from inside Python, which didn't work either.
There really should be an easy way to get this working, no?