Forums

OverviewFelgo 2 Support (Qt 5) › QML dynamic translation causes app to resize

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #21752

    Marek

    Hi Felgo

    I have prepared small app to show the problem, it is visible on Android (tested on Android 7.0)

    When I do QQMlEngine->retranslate application changes its size, like a half of the screen

    before: https://github.com/frankipl/translate-test/blob/master/before_translate.png

    after: https://github.com/frankipl/translate-test/blob/master/after_translate.png

    Here is app source code

    https://github.com/frankipl/translate-test

    I’m not sure, maybe this is Qt related, or I’m doing something wrong.

    Please help

    Best,

    Marek

    #21789

    Marek

    Hi Felgo,

    Could you please take a look at this problem ?

    I have created similar application using just Qt (5.12.3) and I have no problem with dynamic translations, application does not resize.

    Code is available here: https://github.com/frankipl/translate-qt-test

    Best,

    Marek

    #21879

    Christian
    Felgo Team

    Hi Marek,

    I have just tested your example project on my device (LG V10) and an Android emulator (Android 8.0) and your problem did not occur, the app did not change size.

    Please provide more information for us: What device are you testing on? What Android OS version? Which Felgo SDK version (newest is 3.2.0 with Qt 5.12.3)?

    Also, Felgo provides another way to use re-translation, as mentioned in the docs: https://felgo.com/doc/howto-multi-language/#localize-your-app-or-game

    You can add

    + translation.language

    to a binding, which is an empty property but it causes the property binding to re-evaluate when the language changes. Then you don’t need to call the retranslate() function.

    Cheers,
    Chris

    #22123

    Marek

    Hi Christian

    Sorry for late reply. I have tested just now (I added CONFIG += c++14 and NOSTDLIB for Android) to pro file

    https://github.com/frankipl/translate-test

    Problem still exists.

    I’m testing on phone Zenfone 3 Max 5.2 with Android 7.0 I have Felgo 3.2.0-1 release 2019-08-01 NDK android-ndk-r20

    My friend was also testing this on his Felgo installation and with Android 9 and result is the same.

    When I use Felgo way to translate (you have described) and do not call retranslate then it works

    Best,

    Marek

Viewing 4 posts - 1 through 4 (of 4 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support