QtGraphicalEffects not available in Qt6 (qml)
-
Literally that 8 effects have been dropped for various reasons.
-
Will be this effects introduced with new versions 6.xx or will these effects forever removed or do they plan to use here a commercial license only to earn more money?
-
If they remove these effects, then Qt6.x is a downgrade to Qt5 in this area? If they change to commercial license only via Marketplace for all effects, then open source users/supporter leaking of feature set.
-
Qt Design Studio 2.0 uses the layer.effect which is correct from my point of view, but is only possible to apply one effect. layer.effect shall support a array of effects, instead of use a container which is currently the solution. I think an array of effects fits more to external Tools like Photoshop incase Qt plans to add effects export for Qt PSD Bridge.
-
Does somebody saw the development / marketing plans for my questions above somewhere e.g. Qt JIRA etc?
-
-
@Shazter said in QtGraphicalEffects not available in Qt6 (qml):
Will be this effects introduced with new versions 6.xx or will these effects forever removed or do they plan to use here a commercial license only to earn more money?
To the best of my knowledge, no. They have been removed for technical reasons.
@Shazter said in QtGraphicalEffects not available in Qt6 (qml):
If they remove these effects, then Qt6.x is a downgrade to Qt5 in this area? If they change to commercial license only via Marketplace for all effects, then open source users/supporter leaking of feature set.
See above.
@Shazter said in QtGraphicalEffects not available in Qt6 (qml):
Qt Design Studio 2.0 uses the layer.effect which is correct from my point of view, but is only possible to apply one effect. layer.effect shall support a array of effects, instead of use a container which is currently the solution. I think an array of effects fits more to external Tools like Photoshop incase Qt plans to add effects export for Qt PSD Bridge.
This is a user forum. Use the bug report system for feature request.
@Shazter said in QtGraphicalEffects not available in Qt6 (qml):
Does somebody saw the development / marketing plans for my questions above somewhere e.g. Qt JIRA etc?
Marketing plans are not something discussed outside the company AFAIK. For the development, search the Epics in Jira, there are also several blog articles as well as conversation on the development mailing list.
-
@Shazter said in QtGraphicalEffects not available in Qt6 (qml):
If they remove these effects, then Qt6.x is a downgrade to Qt5 in this area? If they change to commercial license only via Marketplace for all effects, then open source users/supporter leaking of feature set.
The wiki page does say that the license is being changed to BSD/Commercial, so heads up.
-
Hello,
Where do you see them? I am on windows, QT6.1.0-beta2 and I do not see them.
Is there something extra that I need to install?Cyrille
-
@Cyrille-de-Brebisson I am not sure but when I updated to that preview (tried even the current one) I can compile my code with them again. Using Linux. Not sure how can I check what modules are currently installed in my distribution.
-
Sorry @Cyrille-de-Brebisson for the misleading information. It's a bit late but here is the right solution for all the people who need to use this module in QT6:
git clone git://code.qt.io/qt/qtgraphicaleffects.git cd qtgraphicaleffects/ git checkout 59ab3e11433a5157aac0f3af7c0d7fe70a373373 cd .. ~/Qt/6.2.1/gcc_64/bin/qmake qtgraphicaleffects make cp qml/QtGraphicalEffects ~/Qt/6.2.1/gcc_64/qml/ -r
So I cloned the module code, got a commit before the complete removal of the source files. Compiled and copied the result to the QT distribution directory.
Then replace all the imports:import QtGraphicalEffects 1.0
with
import Qt5Compat.GraphicalEffects
-
@Hitokage Great, but
import QtGraphicalEffects 1.0
works fine &
Qt5Compat.GraphicalEffects
is not available for me.Note that in
qml/QtGraphicalEffects
directory there is no*.qml
file exist, so for example I couldn't useOpacityMask
in my code. In order to use it or any of the following components in your source code:- BrightnessContrast
- Colorize
- ColorOverlay
- ConicalGradient
- Desaturate
- Displace
- DropShadow
- FastBlur
- FastGlow
- GammaAdjust
- Glow
- HueSaturation
- LevelAdjust
- LinearGradient
- OpacityMask
- RadialGradient
- RectangularGlow
- ThresholdMask
you should also run these command which make
QtGraphicalEffects
ready to use in Qt6:$ find qtgraphicaleffects/src/effects/ -maxdepth 1 -name \*.qml -exec cp {} ~/Qt/<VERSION>/gcc_64/qml/QtGraphicalEffects \; $ cp qtgraphicaleffects/src/effects/private/ ~/Qt/<VERSION>/gcc_64/qml/QtGraphicalEffects -r