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 included in mac deployment

QtGraphicalEffects not included in mac deployment

Scheduled Pinned Locked Moved Solved QML and Qt Quick
qtquickmacdeployqtqtgraphicaleffe
6 Posts 3 Posters 2.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.
  • D Offline
    D Offline
    dogbear
    wrote on last edited by
    #1

    Hello.

    I am trying to deploy a QtQuick app for the mac but macdeployqt seems to be skipping or missing the QtGraphicalEffects module in the final DMG file.

    The DMG seems to build fine. When I mount the generated DMG and inspect the contents of the package, I see the Contents tree, which has 'Frameworks' and 'MacOS' sub-directories. The Frameworks directory does NOT contain QtGraphicalEffects.framework or any mention of QtGraphicalEffects.

    When I try to run the app from the MacOS subdirectory of the package, an error is reported to the console:

    qrc:/TopPanel.qml:2 module "QtGraphicalEffects" is not installed

    Here is the command line I use to create the DMG:

    ./macdeployqt /Users/(me)/Projects/QtQuickProjects/build-(myapp)-Desktop_Qt_5_9_1_clang_64bit-Release/(myapp).app/ -qmldir=/Users/(me)/Qt5.9/5.9.1/clang_64/qml -verbose=1 -dmg
    

    In my /Users/(me)/Qt5.9/5.9.1/clang_64/qml directory, the QtGraphicalEffects directory exists, along with all the other modules that are successfully included in the DMG file.

    So, my questions are:

    1. why isn't QtGraphicalEffects being included?

    2. how do I go about including it into the deployment?

    Thank you very much in advance.

    Kind Regards,

    Carlos

    1 Reply Last reply
    0
    • M Offline
      M Offline
      MaxL
      wrote on last edited by
      #4

      I think you are mis-using the -qmldir option, it should point to a folder where you have your own QML files.
      It will parse them and detect what plugins to install.

      D 1 Reply Last reply
      3
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #2

        Hi,

        Can you provide a small sample application that triggers that behaviour ?

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

        D 1 Reply Last reply
        0
        • SGaistS SGaist

          Hi,

          Can you provide a small sample application that triggers that behaviour ?

          D Offline
          D Offline
          dogbear
          wrote on last edited by
          #3

          @SGaist Yes, of course. And thanks for replying.

          Here is a sample app that has the same effect:

          import QtQuick 2.9
          import QtQuick.Window 2.2
          import QtGraphicalEffects 1.0
          
          Window {
              visible: true
              width: 640
              height: 480
              title: qsTr("Hello World")
          
              Rectangle {
                  anchors.fill: parent
                  gradient: Gradient {
                      GradientStop { position: 0.0; color: "white" }
                      GradientStop { position: 0.06; color: "#93A8B8" }
                      GradientStop { position: 0.45; color: "#B9E1E5" }
                      GradientStop { position: 0.55; color: "#B9E1E5" }
                      GradientStop { position: 1.0; color: "#71859D" }
                  }
              }
          }
          

          I used the same macdeployqt statement and I get the same error message.

          1 Reply Last reply
          0
          • M Offline
            M Offline
            MaxL
            wrote on last edited by
            #4

            I think you are mis-using the -qmldir option, it should point to a folder where you have your own QML files.
            It will parse them and detect what plugins to install.

            D 1 Reply Last reply
            3
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by SGaist
              #5

              @MaxL is right !

              I missed the ending of your macdeployqt command. -qmldir must indeed be pointed to your projects QML sources.

              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
              • M MaxL

                I think you are mis-using the -qmldir option, it should point to a folder where you have your own QML files.
                It will parse them and detect what plugins to install.

                D Offline
                D Offline
                dogbear
                wrote on last edited by
                #6

                @MaxL Yes! That did it. I had been misusing that option from the start. Thanks for spotting it!

                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