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

Qt deploy redundant .qml files

    XMLWordPrintable

Details

    • Android, macOS, Windows

    Description

      When we deploy qt app by using macdeployqt, windeployqt or androiddeployqt, we found that qt will deploy many .qml files, most are from QtQuick.Controls 2.x.

       

      However, take a close look at those .qml files, we found they are already embedded into the plugin share library, so there is really no need to deploy those files. And there are many more plugins that also requires some .qml files but do not deploy them separately, such QtMultimedia. 

      (QtMultimedia does include Video.qml on deployment)

       

      On the other hand, ios/tvos does the right thing and does not deploy those files.

       

      I think the reason is Qt is using qmldir to register those .qml files, so .qml files must be in the same dir. To fix the issue, you either need to register full url (qrc://...) in qmldir, or register those qmls in the registerTypes method in cpp. Either way, it is much better than current situation.

      Attachments

        Issue Links

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

          Activity

            People

              qtandroidteam Qt Android Team
              steve.k.chiu Steve K. Chiu
              Votes:
              2 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes