Import Qt5Compat with PySide6 in QML file
Solved
Qt 6
-
wrote on 2 May 2021, 19:36 last edited by
Hey, I have a PySide6 project in which I want to import
Qt5Compat.GraphicalEffects
.
Qt Creator shows meQML module not found
error.
When I run the project it throwsmodule "Qt5Compat.GraphicalEffects" is not installed
error.I've checked the installed packages on my archlinux machine and I have
qt6-5compat
installed.Is there a way to use Qt5Compat with PySide6?
-
wrote on 3 May 2021, 22:10 last edited by scherzo 5 Mar 2021, 22:11
Yes, there is. I found out that Qt5Compat is coming to Qt 6.1. So any version of Qt or PySide6 below 6.1 won't have this module.
I managed to import and use it by installing dev snapshot wheels of PySide6 6.1.0. You can find them here:https://download.qt.io/snapshots/ci/pyside/dev/latest/pyside2/
Regards.
-
wrote on 4 May 2021, 14:11 last edited by
Well, I guess I'll have to wait for Qt 6.1 or compile it myself ;/
3/3