Use Qt5Compat.GraphicalEffects in Qt6 and QtGraphicalEffects in Qt5 in the same QML file
-
I have some QML files originally written in Qt5, I am migrating them to the latest
QtQuick.Controls 2version and I am making them compatible with Qt6 too.I need to keep supporting Qt5 but I couldn't find a way to import
Qt5Compat.GraphicalEffectswhen the app is built with Qt6 andQtGraphicalEffectswhen Qt5 is used.Any ideas?