Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qml with c++ backend freezes on android
Forum Updated to NodeBB v4.3 + New Features

Qml with c++ backend freezes on android

Scheduled Pinned Locked Moved Solved Mobile and Embedded
12 Posts 4 Posters 1.8k Views
  • 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.
  • J.HilkJ J.Hilk

    hi @PouryaTorabi

    do you happen to have the input keyboard open when you minimize the app?

    currently there's a bug in 5.12 that causes the ui freeze when you minimize the app with virtual keyboard open.

    P Offline
    P Offline
    PouryaTorabi
    wrote on last edited by
    #3

    @J.Hilk Yes I have a keyboard but even if I close the keyboard it still freezes. So you mean the problem is not from c++? I thought may be it is possible to use c++ as the backend.

    1 Reply Last reply
    0
    • J.HilkJ J.Hilk

      hi @PouryaTorabi

      do you happen to have the input keyboard open when you minimize the app?

      currently there's a bug in 5.12 that causes the ui freeze when you minimize the app with virtual keyboard open.

      P Offline
      P Offline
      PouryaTorabi
      wrote on last edited by
      #4

      @J.Hilk Is there any solution or should I switch to another language for android?

      J.HilkJ 1 Reply Last reply
      0
      • P PouryaTorabi

        @J.Hilk Is there any solution or should I switch to another language for android?

        J.HilkJ Online
        J.HilkJ Online
        J.Hilk
        Moderators
        wrote on last edited by
        #5

        @PouryaTorabi
        what I meant was this bug
        https://bugreports.qt.io/browse/QTBUG-72101

        Seems to be fixed in the newest versions of Qt


        Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


        Q: What's that?
        A: It's blue light.
        Q: What does it do?
        A: It turns blue.

        P 1 Reply Last reply
        1
        • J.HilkJ J.Hilk

          @PouryaTorabi
          what I meant was this bug
          https://bugreports.qt.io/browse/QTBUG-72101

          Seems to be fixed in the newest versions of Qt

          P Offline
          P Offline
          PouryaTorabi
          wrote on last edited by
          #6

          @J.Hilk This is the kit I use, so I shouldn't have problem.
          0_1551259224416_5988f0e6-35bd-4ff2-995b-9c01a2425110-image.png

          J.HilkJ 1 Reply Last reply
          0
          • P PouryaTorabi

            @J.Hilk This is the kit I use, so I shouldn't have problem.
            0_1551259224416_5988f0e6-35bd-4ff2-995b-9c01a2425110-image.png

            J.HilkJ Online
            J.HilkJ Online
            J.Hilk
            Moderators
            wrote on last edited by
            #7

            @PouryaTorabi said in Qml with c++ backend freezes on android:

            @J.Hilk This is the kit I use, so I shouldn't have problem.

            actually no,
            you're using 5.12.0
            the fixed versions are: 5.12.1, 5.14.0 Alpha


            Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


            Q: What's that?
            A: It's blue light.
            Q: What does it do?
            A: It turns blue.

            1 Reply Last reply
            2
            • P Offline
              P Offline
              PouryaTorabi
              wrote on last edited by
              #8

              I had a hard time configuring the kit. Is there any easy way to update to qt5.12.1 or I have to download and install the qt5.12.1?

              J.HilkJ 1 Reply Last reply
              0
              • P PouryaTorabi

                I had a hard time configuring the kit. Is there any easy way to update to qt5.12.1 or I have to download and install the qt5.12.1?

                J.HilkJ Online
                J.HilkJ Online
                J.Hilk
                Moderators
                wrote on last edited by
                #9

                @PouryaTorabi
                if you simply download the 5.12.1 (via maintenance tool) QtCreator should automatically select the settings from your 5.12.0 kit and apply them to the 5.12.1 one


                Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


                Q: What's that?
                A: It's blue light.
                Q: What does it do?
                A: It turns blue.

                1 Reply Last reply
                0
                • P Offline
                  P Offline
                  PouryaTorabi
                  wrote on last edited by
                  #10

                  After a lot of struggling I had to download and install qt 5.12.1 which also installed Qt creator 4.8.1, I also had to change the ndk version, it didn't work with the ndk r14 so I used ndk r19, then built the project again and the bug was solved.
                  There were no update for qt5.12.1 in the maintenance tool.
                  Thanks for your help @J-Hilk .

                  1 Reply Last reply
                  1
                  • P Offline
                    P Offline
                    PSI_lbc
                    wrote on last edited by
                    #11

                    This is a year old, sorry to bring it back up...

                    I have an existing app that had been running perfectly on all Android OSes up until the Android 9 release..then the app started to have "freezes" issues. Nothing changed in the app which was built using qt5.8.1, so the freeze is obviously related to changes in the Android OS.

                    So I'm going to recompile the app to "fix" the "freeze" issue.

                    Does the Freeze Fix only exist in qt5.12.1 or is it in all Qt versions greater than qt5.12.1 ?

                    Specifically is it in qt5.12.7 ?

                    jsulmJ 1 Reply Last reply
                    0
                    • P PSI_lbc

                      This is a year old, sorry to bring it back up...

                      I have an existing app that had been running perfectly on all Android OSes up until the Android 9 release..then the app started to have "freezes" issues. Nothing changed in the app which was built using qt5.8.1, so the freeze is obviously related to changes in the Android OS.

                      So I'm going to recompile the app to "fix" the "freeze" issue.

                      Does the Freeze Fix only exist in qt5.12.1 or is it in all Qt versions greater than qt5.12.1 ?

                      Specifically is it in qt5.12.7 ?

                      jsulmJ Offline
                      jsulmJ Offline
                      jsulm
                      Lifetime Qt Champion
                      wrote on last edited by
                      #12

                      @PSI_lbc If the fix is in 5.12.1 then it will be in all newer versions as well

                      https://forum.qt.io/topic/113070/qt-code-of-conduct

                      1 Reply Last reply
                      1

                      • Login

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