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. QML runtime error: module "Qt5Compat.QtGraphicalEffects" is not installed
Forum Update on Monday, May 27th 2025

QML runtime error: module "Qt5Compat.QtGraphicalEffects" is not installed

Scheduled Pinned Locked Moved Solved QML and Qt Quick
11 Posts 4 Posters 465 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.
  • J.HilkJ Offline
    J.HilkJ Offline
    J.Hilk
    Moderators
    wrote on last edited by
    #2

    Compat modules are designed to ease developers transition from Qt5 Applications to Qt6.

    There is no guarantee, how long they will be part of the Qt libraries.

    Official support for Qt5 was dropped in 2023 and the commercial support for qt5 is stops this May (2025). I expect future releases to not have these modules.

    So, keep that in mind.


    Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


    Q: What's that?
    A: It's blue light.
    Q: What does it do?
    A: It turns blue.

    Aleksey_KA 1 Reply Last reply
    0
    • J.HilkJ J.Hilk

      Compat modules are designed to ease developers transition from Qt5 Applications to Qt6.

      There is no guarantee, how long they will be part of the Qt libraries.

      Official support for Qt5 was dropped in 2023 and the commercial support for qt5 is stops this May (2025). I expect future releases to not have these modules.

      So, keep that in mind.

      Aleksey_KA Offline
      Aleksey_KA Offline
      Aleksey_K
      wrote on last edited by
      #3

      @J-Hilk said in QML runtime error: module "Qt5Compat.QtGraphicalEffects" is not installed:

      Compat modules are designed to ease developers transition from Qt5 Applications to Qt6.

      There is no guarantee, how long they will be part of the Qt libraries.

      Official support for Qt5 was dropped in 2023 and the commercial support for qt5 is stops this May (2025). I expect future releases to not have these modules.

      So, keep that in mind.

      Yep, probably need to remove it some day. Anyway ChatGPT tips for
      import QtQuick.Controls.Styles -> QtQuick.Controls migration and Qt6::QuickControls2 component was useful. However any replacement for DropShadow?

      Aleksey_KA 1 Reply Last reply
      0
      • J.HilkJ Offline
        J.HilkJ Offline
        J.Hilk
        Moderators
        wrote on last edited by
        #4

        Not 1:1

        From what I gathered when transitioning, was that you're supposed to use actual Shaders for it:
        https://doc.qt.io/qt-6/qml-qtquick-shadereffect.html

        Sadly delving into that, was for me a bit out of scope, for my projects. So I ended up with an offset rectangle filled black and semi transparent. "Good enough" for my use case.


        Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


        Q: What's that?
        A: It's blue light.
        Q: What does it do?
        A: It turns blue.

        Aleksey_KA 1 Reply Last reply
        0
        • Aleksey_KA Aleksey_K

          @J-Hilk said in QML runtime error: module "Qt5Compat.QtGraphicalEffects" is not installed:

          Compat modules are designed to ease developers transition from Qt5 Applications to Qt6.

          There is no guarantee, how long they will be part of the Qt libraries.

          Official support for Qt5 was dropped in 2023 and the commercial support for qt5 is stops this May (2025). I expect future releases to not have these modules.

          So, keep that in mind.

          Yep, probably need to remove it some day. Anyway ChatGPT tips for
          import QtQuick.Controls.Styles -> QtQuick.Controls migration and Qt6::QuickControls2 component was useful. However any replacement for DropShadow?

          Aleksey_KA Offline
          Aleksey_KA Offline
          Aleksey_K
          wrote on last edited by Aleksey_K
          #5

          @Aleksey_K said in QML runtime error: module "Qt5Compat.QtGraphicalEffects" is not installed:

          However any replacement for DropShadow?

          MultiEffect component seems allow 1:1: https://stackoverflow.com/a/77585865/630169

          1 Reply Last reply
          0
          • J.HilkJ J.Hilk

            Not 1:1

            From what I gathered when transitioning, was that you're supposed to use actual Shaders for it:
            https://doc.qt.io/qt-6/qml-qtquick-shadereffect.html

            Sadly delving into that, was for me a bit out of scope, for my projects. So I ended up with an offset rectangle filled black and semi transparent. "Good enough" for my use case.

            Aleksey_KA Offline
            Aleksey_KA Offline
            Aleksey_K
            wrote on last edited by Aleksey_K
            #6

            @J-Hilk MultiEffect replaces ColorOverlay as well:
            https://stackoverflow.com/a/79205929/630169

            JKSHJ 1 Reply Last reply
            0
            • J.HilkJ Offline
              J.HilkJ Offline
              J.Hilk
              Moderators
              wrote on last edited by
              #7

              ah, a higher level API than working with shaders directly!

              Didn't know it existed.


              Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


              Q: What's that?
              A: It's blue light.
              Q: What does it do?
              A: It turns blue.

              Aleksey_KA 1 Reply Last reply
              0
              • J.HilkJ J.Hilk

                ah, a higher level API than working with shaders directly!

                Didn't know it existed.

                Aleksey_KA Offline
                Aleksey_KA Offline
                Aleksey_K
                wrote on last edited by Aleksey_K
                #8

                @J-Hilk said in QML runtime error: module "Qt5Compat.QtGraphicalEffects" is not installed:

                ah, a higher level API than working with shaders directly!

                Didn't know it existed.

                Seems I saw this component when Qt6 appear, however further this migration info/links become lost, while current Qt/QML 6 migration docs are very poor and misses such info.

                1 Reply Last reply
                0
                • Aleksey_KA Aleksey_K

                  @J-Hilk MultiEffect replaces ColorOverlay as well:
                  https://stackoverflow.com/a/79205929/630169

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

                  @Aleksey_K said in QML runtime error: module "Qt5Compat.QtGraphicalEffects" is not installed:

                  @J-Hilk MultiEffect replaces ColorOverlay as well:
                  https://stackoverflow.com/a/79205929/630169

                  +1

                  @Aleksey_K said in QML runtime error: module "Qt5Compat.QtGraphicalEffects" is not installed:

                  However any replacement for DropShadow?

                  MultiEffect handles it, and there's also RectangularShadow now: https://doc.qt.io/qt-6/qml-qtquick-effects-rectangularshadow.html It doesn't support arbitrary shapes, but performs better than MultiEffect/DropShadow

                  @Aleksey_K said in QML runtime error: module "Qt5Compat.QtGraphicalEffects" is not installed:

                  migration info/links become lost, while current Qt/QML 6 migration docs are very poor and misses such info.

                  Agreed. Here's a request to improve things: https://bugreports.qt.io/browse/QTBUG-135865

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

                  1 Reply Last reply
                  1
                  • Aleksey_KA Offline
                    Aleksey_KA Offline
                    Aleksey_K
                    wrote on last edited by
                    #10

                    Unfortunate MultiEffect is buggy comparing to ColorOverlay - it does not color my icon in some cases, so forced to rollback to Qt5Compat.GraphicalEffects.

                    A 1 Reply Last reply
                    0
                    • Aleksey_KA Aleksey_K

                      Unfortunate MultiEffect is buggy comparing to ColorOverlay - it does not color my icon in some cases, so forced to rollback to Qt5Compat.GraphicalEffects.

                      A Offline
                      A Offline
                      Aleksey Asensus
                      wrote on last edited by Aleksey Asensus
                      #11

                      @Aleksey_K said in QML runtime error: module "Qt5Compat.QtGraphicalEffects" is not installed:

                      Unfortunate MultiEffect is buggy comparing to ColorOverlay - it does not color my icon in some cases, so forced to rollback to Qt5Compat.GraphicalEffects.

                      Found solution for the full replacement: https://forum.qt.io/post/807844
                      Need to set brightness: 1.0, however now "transparent" color does not work if I need to keep original color unchanged, Probably need to add more complex logic to hide MultiEffect and show original Image.

                      So still on ColorOverlay.

                      1 Reply Last reply
                      1
                      • Aleksey_KA Aleksey_K has marked this topic as solved on
                      • Aleksey_KA Aleksey_K has marked this topic as unsolved on
                      • Aleksey_KA Aleksey_K has marked this topic as solved on

                      • Login

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