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)

QtGraphicalEffects not available in Qt6 (qml)

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
qmlqt6effects
24 Posts 11 Posters 27.1k 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.
  • DiracsbracketD Offline
    DiracsbracketD Offline
    Diracsbracket
    wrote on last edited by Diracsbracket
    #5
    This post is deleted!
    1 Reply Last reply
    0
    • SGaistS SGaist

      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.

      DiracsbracketD Offline
      DiracsbracketD Offline
      Diracsbracket
      wrote on last edited by
      #6
      This post is deleted!
      1 Reply Last reply
      0
      • B Offline
        B Offline
        bolt
        wrote on last edited by
        #7

        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

        1 Reply Last reply
        0
        • H Offline
          H Offline
          Hitokage
          wrote on last edited by
          #8

          Unfortunately, I am downgrading too. There are modules that I need in my app like QtGraphicalEffects and AndroidExtras. If anyone know about a way to use them in QT 6 I would really appreciate instructions. Thanks!

          1 Reply Last reply
          0
          • SGaistS SGaist

            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.

            H Offline
            H Offline
            Hitokage
            wrote on last edited by
            #9

            @SGaist Does Qt 5 Core Compatibility contain all the old modules? Is it a solution?

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #10

              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.

              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
              1
              • SGaistS SGaist

                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.

                H Offline
                H Offline
                Hitokage
                wrote on last edited by
                #11

                @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

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #12

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

                  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
                  1
                  • SGaistS SGaist

                    @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 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
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on 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
                      1
                      • SGaistS SGaist

                        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 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 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?

                          SGaistS kshegunovK 2 Replies Last reply
                          1
                          • S Shazter

                            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?

                            SGaistS Offline
                            SGaistS Offline
                            SGaist
                            Lifetime Qt Champion
                            wrote on 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

                              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?

                              kshegunovK Offline
                              kshegunovK Offline
                              kshegunov
                              Moderators
                              wrote on 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 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 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
                                  0
                                  • C Cyrille de Brebisson

                                    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 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 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
                                      3
                                      • H Hitokage

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

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