QtGraphicalEffects not available in Qt6 (qml)
-
Hi,
From the looks of the report, you should be able to build the dev branch and test it with your code. Unless you are using one of the few effects that have been removed.
-
This post is deleted!
-
This post is deleted!
-
I encountered the same error, IDE told me module couldn't be found in default dir[~Qt/6.0.0/clang_64/qml], and then I checked it, IDE was right,
but I found QtGraphicalEffects exist in another two dir[~/Qt/Qtcreator/..] [~/Qt/Designer Studio2/...].I copied subdir[QtGraphicalEffects] from [~/Qt/Qtcreator/..] to excutable dir,
build process finished but launcher ended with "plugin incompatible".all problem solved by change 6.0 to 5.12
-
Right from the link you posted:
The Qt 5 Core Compat module contains the Qt Core APIs which will be no longer supported in Qt 6 and therefore were removed from Qt 6.
So no it won't contain anything and everything being dropped for Qt 6.
Take a look at the checklist for Qt 6.0 inclusion to have an idea of what is planned for which release of Qt 6. As noted, Qt 6.0 (emphasis on .0) is not a drop in replacement for Qt 5.
-
@SGaist I see, thanks. So waiting :D. Umm what does The RHI port supports 17 out of 25 effects. mean? Is there any QML accessible API for them?
Sorry for the questions. I just got quite surprised when I installed QT 6 and tried to run my project....yea I know...keep the old versions until it stops working :D -
@Hitokage said in QtGraphicalEffects not available in Qt6 (qml):
The RHI port supports 17 out of 25 effects. mean?
Literally that 8 effects have been dropped for various reasons.
@Hitokage said in QtGraphicalEffects not available in Qt6 (qml):
Is there any QML accessible API for them?
What do you mean by that ? AFAIK, these are QML effects.
-
As noted in the wiki page I linked, it's not available at the time of Qt 6.0 so it will be later. Either 6.1 or 6.2.
-
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