QQmlApplicationEngine failed to load component (module "Qt5Compat.GraphicalEffects" is not installed)
-
Hello! I'm using the latest version of Qt (downloaded yesterday - Qt Creator 7.0.0, Qt 6.2.4, PySide6). I created QML project for Python and try to import Qt5Compat.GraphicalEffects. Qt Creator shows an error "module "Qt5Compat.GraphicalEffects" is not installed".
I checked everything, it's really installed (it's in 2 folders: C:\Qt\Tools\QtCreator\bin\qml\Qt5Compat\GraphicalEffects and in C:\Qt\6.2.4\mingw_64\qml\Qt5Compat\GraphicalEffects)How to solve this issue?
-
The PySide6 installation is independent of the Qt installation. When you use
pip install pyside6
you will get Qt binaries and tools inside yoursite-packages
directory on your virtual environment (or user namespace if you didn't use a virtual environment).The PySide6 installation has no Qt5Compat files, because they are based on bindings, and there is none for the qt5compat module. In case you believe some C++ classes should be exposed, or you need new qml files under
site-packages/PySide6/Qt/qml
it would be better for you to file a bug report: https://wiki.qt.io/Qt_for_Python/Reporting_Bugs