Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-96976

Qt deploys Qt53D components the app not using

    XMLWordPrintable

Details

    • Android, macOS, Windows

    Description

      My project do support both Qt5 and Qt6. The same QML code is used, except some files. Some qml files are added in resources when compiling using Qt5, and others - when compiling using Qt6.

      Example of Qt6 qml file, which just exists on disk but on included into the resources when compiling using Qt5:

      import QtQuick 2.0
      import Qt5Compat.GraphicalEffects
      ColorOverlay
      {}
      

      I calls deploy tools using --qml-dir parameter. These tools sees these Qt5Compat.GraphicalEffects import and thinks that this requires all Qt53D stuff. If I remove these Qt6 files from disk - all is compiled/deployed/run fine.

      A temporary workaround is to remove these Qt6 qml files from disk before calling deploy tool. Also, under Windows OS I can use these parameters for windeployqt tool:

      --no-3dcore --no-3drenderer --no-3dquick --no-3dquickrenderer --no-3dinput --no-3danimation --no-3dextras

      Unfortunately, it seems that these parameters are supported under Windows only.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qtandroidteam Qt Android Team
            alervd Alexander Dyagilev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes