[Interest] Android: include and use the translation files of Qt (qt_*.qm)

Alexander Dyagilev alervdvcw at gmail.com
Mon Aug 19 04:41:34 CEST 2019

Something like this?

qt_qm_files.path = /assets/translations
qt_qm_files.files += $$QT_INSTALL_TRANSLATIONS/qt_*.qm
INSTALLS += qt_qm_files

On 8/19/2019 5:39 AM, Alexander Dyagilev wrote:
> Looks like I should use qmake's INSTALLS variable and install all the 
> required qt_*.qm files into assets folder?
> On 8/19/2019 5:36 AM, Alexander Dyagilev wrote:
>> Hello,
>> Is there a "good" way to achieve this?
>> The only solution for know I'm thinking of is to manually copy all 
>> them into my project folder and include into resource files.
>> This is not good because I'll have to store them in my repository and 
>> I'll have to update them every time I update Qt.
>> What I want instead is to be able to tell qmake/androiddeployqt tools 
>> to add all these files automatically from Qt installation folder into 
>> my APK.

More information about the Interest mailing list