Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. QtCreator Android: How to disable QtQuick?
Forum Updated to NodeBB v4.3 + New Features

QtCreator Android: How to disable QtQuick?

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
3 Posts 2 Posters 226 Views 1 Watching
  • 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.
  • warped-rudiW Offline
    warped-rudiW Offline
    warped-rudi
    wrote on last edited by
    #1

    I have an Android project built with Qt Creator 15 under Windows. Even though it is not using any QML/QtQuick (i.e. it's QtWidgets only), the resulting APK contains a lot of QtQuick libraries. How to get rid of them?

    1 Reply Last reply
    0
    • cristian-adamC Offline
      cristian-adamC Offline
      cristian-adam
      wrote on last edited by
      #2

      It might be that androiddeployqt is deploying stuff just in case.

      You can just remove (rename / backup) the files from your Qt for Android SDK.

      The logic here is, if the file is not there, it cannot be deployed 😀

      1 Reply Last reply
      0
      • warped-rudiW Offline
        warped-rudiW Offline
        warped-rudi
        wrote on last edited by
        #3

        Hehe. I've found the reason! My source tree contains a 3rd party library, which I updated recently. The new version would include an example showing how to use it with QML. Now, androiddeployqt is running qmlimportscanner with the root directory set to the source tree. Thus it will find this (unused) example code and stuff it's dependencies into the APK, nearly doubling the size.

        I could get around that by specifying QML_ROOT_PATH in the project file.

        1 Reply Last reply
        0
        • warped-rudiW warped-rudi has marked this topic as solved on

        • Login

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