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.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.
  • M Offline
    M Offline
    mnesarco
    wrote on 1 Dec 2020, 14:18 last edited by
    #3

    Thank you @JKSH . Is there a way to use it in Qt6 as an external library? Or at least is there a way to add a drop shadow to a QuickItem in Qt6?

    Thanks.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 1 Dec 2020, 18:50 last edited by
      #4

      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.

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

      D H 2 Replies Last reply 27 Dec 2020, 08:02
      1
      • D Offline
        D Offline
        Diracsbracket
        wrote on 27 Dec 2020, 06:29 last edited by Diracsbracket
        #5
        This post is deleted!
        1 Reply Last reply
        0
        • S SGaist
          1 Dec 2020, 18:50

          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.

          D Offline
          D Offline
          Diracsbracket
          wrote on 27 Dec 2020, 08:02 last edited by
          #6
          This post is deleted!
          1 Reply Last reply
          0
          • B Offline
            B Offline
            bolt
            wrote on 8 Feb 2021, 03:21 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 16 Feb 2021, 18:18 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
              • S SGaist
                1 Dec 2020, 18:50

                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 16 Feb 2021, 18:23 last edited by
                #9

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

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 16 Feb 2021, 19:11 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 16 Feb 2021, 19:38
                  1
                  • S SGaist
                    16 Feb 2021, 19:11

                    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 16 Feb 2021, 19:38 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
                    • S Offline
                      S Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on 16 Feb 2021, 19:46 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 16 Feb 2021, 19:50
                      1
                      • 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 kshegunovK 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?

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

                                          • Login

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