Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QtGraphicalEffects not available in Qt6 (qml)
Forum Update on Monday, May 27th 2025

QtGraphicalEffects not available in Qt6 (qml)

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
qmlqt6effects
24 Posts 11 Posters 27.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S SGaist
    16 Feb 2021, 19:46

    @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.

    H Offline
    H Offline
    Hitokage
    wrote on 16 Feb 2021, 19:50 last edited by
    #13

    @SGaist Well, we had to import QtGraphicalEffects. Now, we can't. So how do we access those now? Or what does it mean that RHI supports them?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 16 Feb 2021, 19:56 last edited by
      #14

      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.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      H 1 Reply Last reply 16 Feb 2021, 19:59
      1
      • S SGaist
        16 Feb 2021, 19:56

        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.

        H Offline
        H Offline
        Hitokage
        wrote on 16 Feb 2021, 19:59 last edited by
        #15

        @SGaist I see! Thank you very much! I guess that I might as well manually replace some of the effects by using ShaderEffect.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          Shazter
          wrote on 12 Mar 2021, 19:30 last edited by
          #16

          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?

          S K 2 Replies Last reply 12 Mar 2021, 20:01
          1
          • S Shazter
            12 Mar 2021, 19:30

            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?

            S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 12 Mar 2021, 20:01 last edited by
            #17

            @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.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • S Shazter
              12 Mar 2021, 19:30

              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?

              K Offline
              K Offline
              kshegunov
              Moderators
              wrote on 13 Mar 2021, 03:01 last edited by
              #18

              @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.

              Read and abide by the Qt Code of Conduct

              1 Reply Last reply
              1
              • H Offline
                H Offline
                Hitokage
                wrote on 14 Mar 2021, 09:42 last edited by
                #19

                Seems like they are present when using desktop version in the latest 6.1 preview.

                1 Reply Last reply
                0
                • C Offline
                  C Offline
                  Cyrille de Brebisson
                  wrote on 31 Mar 2021, 07:28 last edited by
                  #20

                  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

                  H 1 Reply Last reply 2 Apr 2021, 18:29
                  0
                  • C Cyrille de Brebisson
                    31 Mar 2021, 07:28

                    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

                    H Offline
                    H Offline
                    Hitokage
                    wrote on 2 Apr 2021, 18:29 last edited by
                    #21

                    @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.

                    1 Reply Last reply
                    0
                    • H Offline
                      H Offline
                      Hitokage
                      wrote on 15 Nov 2021, 17:50 last edited by
                      #22

                      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
                      
                      A 1 Reply Last reply 23 Feb 2022, 10:08
                      3
                      • H Hitokage
                        15 Nov 2021, 17:50

                        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
                        
                        A Offline
                        A Offline
                        AM.B
                        wrote on 23 Feb 2022, 10:08 last edited by
                        #23

                        @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 use OpacityMask 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
                        
                        1 Reply Last reply
                        0
                        • M mnesarco
                          1 Dec 2020, 06:59

                          Hi Friends,
                          I have tried to use DropShadow from QtGraphicalEffects in a Qt6 app, but it is not found. Is there any specific module to be added in my cmake list? In Qt5.15.2 it works out of the box.

                          Thanks in advance.

                          A Offline
                          A Offline
                          Anuj Chaudhary
                          wrote on 17 Oct 2022, 05:41 last edited by
                          #24

                          @mnesarco Hi mnesarco
                          QtGraphicalEffects not available in Qt6 (qml) but we can use alternate way
                          -> import Qt5Compat.GraphicalEffects

                          1 Reply Last reply
                          0

                          • Login

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • Users
                          • Groups
                          • Search
                          • Get Qt Extensions
                          • Unsolved