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

libQt5Widgets pulled into the APK package without being used by the project

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P3: Somewhat important
    • None
    • 5.12.0
    • Build System
    • None
    • windows 7 x64, ndk18d
    • Android

    Description

      For some reason, Qt pulls in the Widgets module for a project that doesn't even include it:

      QT += quick quickcontrols2

      The resulting APK file contains libQt5Widgets.so, which constitutes a 2 mb package and 3.7 mb deployment overhead. Should that be happening?

       

      Examining the verbose build output, it seems that the module is brought in by the Qt.labs.platform module:

       

      -- Appending dependency found by qmlimportscanner: E:/Qt/Qt5.12.0/5.12.0/android_armv7/qml/Qt/labs/platform/libqtlabsplatformplugin.so
      Reading dependencies from E:/Qt/Qt5.12.0/5.12.0/android_armv7/qml/Qt/labs/platform/libqtlabsplatformplugin.so
       lib/libQt5Quick.so
       lib/libQt5Widgets.so
       lib/libQt5Gui.so
       lib/libQt5Qml.so
       lib/libQt5Network.so
       lib/libQt5Core.so

      Attachments

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

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            dgo dgo
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes