Search code examples
qtqmlpyside2pyside6qt6

Using GraphicalEffects in PySide6


I am using PySide6 and am trying to use the GraphicalEffects module.

As per documentation here: https://doc.qt.io/qt-6/qtgraphicaleffects5-index.html

I am doing:

import Qt5Compat.QtGraphicalEffects

The error I am getting:

"Qt5Compat.QtGraphicalEffects" is not installed

How do I install this module? I have PySide6.2.2.1 installed on my Linux machine.


Solution

  • Its a known issue when installing from pypi. It will be fixed in pyside 6.4.

    You can also build from source and it will be added automatically if you installed it with Qt-online installer.