QML runtime error: module "Qt5Compat.QtGraphicalEffects" is not installed
-
Compat modules are designed to ease developers transition from Qt5 Applications to Qt6.
There is no guarantee, how long they will be part of the Qt libraries.
Official support for Qt5 was dropped in 2023 and the commercial support for qt5 is stops this May (2025). I expect future releases to not have these modules.
So, keep that in mind.
-
Compat modules are designed to ease developers transition from Qt5 Applications to Qt6.
There is no guarantee, how long they will be part of the Qt libraries.
Official support for Qt5 was dropped in 2023 and the commercial support for qt5 is stops this May (2025). I expect future releases to not have these modules.
So, keep that in mind.
@J-Hilk said in QML runtime error: module "Qt5Compat.QtGraphicalEffects" is not installed:
Compat modules are designed to ease developers transition from Qt5 Applications to Qt6.
There is no guarantee, how long they will be part of the Qt libraries.
Official support for Qt5 was dropped in 2023 and the commercial support for qt5 is stops this May (2025). I expect future releases to not have these modules.
So, keep that in mind.
Yep, probably need to remove it some day. Anyway ChatGPT tips for
import QtQuick.Controls.Styles
->QtQuick.Controls
migration andQt6::QuickControls2
component was useful. However any replacement forDropShadow
? -
Not 1:1
From what I gathered when transitioning, was that you're supposed to use actual Shaders for it:
https://doc.qt.io/qt-6/qml-qtquick-shadereffect.htmlSadly delving into that, was for me a bit out of scope, for my projects. So I ended up with an offset rectangle filled black and semi transparent. "Good enough" for my use case.
-
@J-Hilk said in QML runtime error: module "Qt5Compat.QtGraphicalEffects" is not installed:
Compat modules are designed to ease developers transition from Qt5 Applications to Qt6.
There is no guarantee, how long they will be part of the Qt libraries.
Official support for Qt5 was dropped in 2023 and the commercial support for qt5 is stops this May (2025). I expect future releases to not have these modules.
So, keep that in mind.
Yep, probably need to remove it some day. Anyway ChatGPT tips for
import QtQuick.Controls.Styles
->QtQuick.Controls
migration andQt6::QuickControls2
component was useful. However any replacement forDropShadow
?@Aleksey_K said in QML runtime error: module "Qt5Compat.QtGraphicalEffects" is not installed:
However any replacement for
DropShadow
?MultiEffect component seems allow 1:1: https://stackoverflow.com/a/77585865/630169
-
Not 1:1
From what I gathered when transitioning, was that you're supposed to use actual Shaders for it:
https://doc.qt.io/qt-6/qml-qtquick-shadereffect.htmlSadly delving into that, was for me a bit out of scope, for my projects. So I ended up with an offset rectangle filled black and semi transparent. "Good enough" for my use case.
-
ah, a higher level API than working with shaders directly!
Didn't know it existed.
-
@J-Hilk said in QML runtime error: module "Qt5Compat.QtGraphicalEffects" is not installed:
ah, a higher level API than working with shaders directly!
Didn't know it existed.
Seems I saw this component when Qt6 appear, however further this migration info/links become lost, while current Qt/QML 6 migration docs are very poor and misses such info.
-
@J-Hilk
MultiEffect
replacesColorOverlay
as well:
https://stackoverflow.com/a/79205929/630169@Aleksey_K said in QML runtime error: module "Qt5Compat.QtGraphicalEffects" is not installed:
@J-Hilk
MultiEffect
replacesColorOverlay
as well:
https://stackoverflow.com/a/79205929/630169+1
@Aleksey_K said in QML runtime error: module "Qt5Compat.QtGraphicalEffects" is not installed:
However any replacement for DropShadow?
MultiEffect handles it, and there's also
RectangularShadow
now: https://doc.qt.io/qt-6/qml-qtquick-effects-rectangularshadow.html It doesn't support arbitrary shapes, but performs better than MultiEffect/DropShadow@Aleksey_K said in QML runtime error: module "Qt5Compat.QtGraphicalEffects" is not installed:
migration info/links become lost, while current Qt/QML 6 migration docs are very poor and misses such info.
Agreed. Here's a request to improve things: https://bugreports.qt.io/browse/QTBUG-135865
-
Unfortunate
MultiEffect
is buggy comparing toColorOverlay
- it does not color my icon in some cases, so forced to rollback toQt5Compat.GraphicalEffects
.@Aleksey_K said in QML runtime error: module "Qt5Compat.QtGraphicalEffects" is not installed:
Unfortunate
MultiEffect
is buggy comparing toColorOverlay
- it does not color my icon in some cases, so forced to rollback toQt5Compat.GraphicalEffects
.Found solution for the full replacement: https://forum.qt.io/post/807844
Need to setbrightness: 1.0
, however now"transparent"
color does not work if I need to keep original color unchanged, Probably need to add more complex logic to hideMultiEffect
and show originalImage
.So still on
ColorOverlay
.