Use Qt5Compat.GraphicalEffects in Qt6 and QtGraphicalEffects in Qt5 in the same QML file
Unsolved
QML and Qt Quick
-
I have some QML files originally written in Qt5, I am migrating them to the latest
QtQuick.Controls 2
version 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.GraphicalEffects
when the app is built with Qt6 andQtGraphicalEffects
when Qt5 is used.Any ideas?