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 464 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 Offline
    J Offline
    J.Hilk
    Moderators
    wrote on 10 Apr 2025, 06:15 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.

    A 1 Reply Last reply 10 Apr 2025, 06:21
    0
    • J J.Hilk
      10 Apr 2025, 06:15

      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.

      A Offline
      A Offline
      Aleksey_K
      wrote on 10 Apr 2025, 06:21 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?

      A 1 Reply Last reply 10 Apr 2025, 06:28
      0
      • J Offline
        J Offline
        J.Hilk
        Moderators
        wrote on 10 Apr 2025, 06:27 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.

        A 1 Reply Last reply 10 Apr 2025, 06:57
        0
        • A Aleksey_K
          10 Apr 2025, 06:21

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

          A Offline
          A Offline
          Aleksey_K
          wrote on 10 Apr 2025, 06:28 last edited by Aleksey_K 4 Oct 2025, 06:29
          #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 J.Hilk
            10 Apr 2025, 06:27

            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.

            A Offline
            A Offline
            Aleksey_K
            wrote on 10 Apr 2025, 06:57 last edited by Aleksey_K 4 Oct 2025, 07:07
            #6

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

            J 1 Reply Last reply 10 Apr 2025, 08:41
            0
            • J Offline
              J Offline
              J.Hilk
              Moderators
              wrote on 10 Apr 2025, 07:10 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.

              A 1 Reply Last reply 10 Apr 2025, 07:14
              0
              • J J.Hilk
                10 Apr 2025, 07:10

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

                Didn't know it existed.

                A Offline
                A Offline
                Aleksey_K
                wrote on 10 Apr 2025, 07:14 last edited by Aleksey_K 4 Oct 2025, 07:14
                #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
                • A Aleksey_K
                  10 Apr 2025, 06:57

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

                  J Offline
                  J Offline
                  JKSH
                  Moderators
                  wrote on 10 Apr 2025, 08:41 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
                  • A Offline
                    A Offline
                    Aleksey_K
                    wrote on 11 Apr 2025, 08:35 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 15 Apr 2025, 20:39
                    0
                    • A Aleksey_K
                      11 Apr 2025, 08:35

                      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 15 Apr 2025, 20:39 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
                      • A Aleksey_K has marked this topic as solved on 19 Apr 2025, 13:48
                      • A Aleksey_K has marked this topic as unsolved on 19 Apr 2025, 16:18
                      • A Aleksey_K has marked this topic as solved on 19 Apr 2025, 16:18

                      11/11

                      15 Apr 2025, 20:39

                      • Login

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