Qt Android Tools Installation Instructions

Download

git clone https://github.com/FalsinSoft/QtAndroidTools.git

 

Usage

  • Place QtAndroidTools lib to your project dir and include it in .pro file
    include(QtAndroidTools/QtAndroidTools.pri)
  • Assign in your .pro file variable ANDROID_PACKAGE_SOURCE_DIR before include QtAndroidTools/QtAndroidTools.pri, for ex.
    ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android
  • Always before include QtAndroidTools/QtAndroidTools.pri add the define labels for specify the library tools you want to include/exclude from your project compilation:
    DEFINES += \
        QTAT_APP_PERMISSIONS \
        QTAT_APK_EXPANSION_FILES \
        QTAT_APK_INFO \
        QTAT_SCREEN \
        QTAT_SYSTEM \
        QTAT_BATTERY_STATE \
        QTAT_SIGNAL_STRENGTH \
        QTAT_IMAGES \
        QTAT_NOTIFICATION \
        QTAT_ADMOB_BANNER \
        QTAT_ADMOB_INTERSTITIAL \
        QTAT_ADMOB_REWARDED_VIDEO \
        QTAT_PLAY_STORE \
        QTAT_GOOGLE_ACCOUNT \ 
        QTAT_GOOGLE_DRIVE \
        QTAT_SHARING \
        QTAT_USER_MESSAGING_PLATFORM
  • In the main() body insert the call for initialize the library
    QtAndroidTools::InitializeQmlTools();

 

Back to Qt Marketplace