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)
QtWS25 Last Chance

QtGraphicalEffects not available in Qt6 (qml)

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
qmlqt6effects
24 Posts 11 Posters 27.0k 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 last edited by
    #1

    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.

    JKSHJ A 2 Replies Last reply
    2
    • 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.

      JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by
      #2

      Hi @mnesarco, Qt Graphical Effects is not part of Qt 6.0:

      • https://wiki.qt.io/Checklist_for_Qt_6.0_inclusion#Qt_Graphical_Effects
      • https://bugreports.qt.io/browse/QTBUG-85256

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      1 Reply Last reply
      2
      • M Offline
        M Offline
        mnesarco
        wrote on 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
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on 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

          DiracsbracketD H 2 Replies Last reply
          1
          • 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

                                          • Login

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