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. Qt vs Native applications for mobile platforms
Forum Updated to NodeBB v4.3 + New Features

Qt vs Native applications for mobile platforms

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
6 Posts 4 Posters 4.5k 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.
  • D Offline
    D Offline
    dragge
    wrote on last edited by dragge
    #1

    Hello, I'am doing my final master thesis and the subject is Qt crossplattform vs Native mobile applications. Before i started this i had no Qt experience just c++. So far ive been comparing how Qt and Native applications perform during calculation tasks and Ui tasks by creating small applications to test it. The calculation task was to sort big chunk data in an array and the ui task was to present text to the screen and measure time doing the tasks. I use qml/xml to create ui objects and c++/java to interact with them. Same code just different languages. When running the tests Qt had much better results and I was a little bit shocked tbh. The calculation task i could understand since it is in c++? But the Ui task.. Now to my question, Is it possible for Qt to perform better than a native app or do you think ive done some horrible misstake?

    I still have to create native iOS applications and test those tho but im already suprised by the result :P

    Thanks.

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      What platform ?
      Android?

      Also what do you compare ?
      java vs c++
      or javascript ?

      Is it possible for Qt to perform better than a native app or do you think ive done some horrible mistake?

      Well its possible due to Qt sometimes provide a lighter implementation than the native widget. ( vs wrapping it)
      Also QML is opengl enabled and might draw faster in some cases.

      Also if you compare to java, you should read up on tweaking for performance.
      You might use something that is slow in java to screw the results a bit.

      Overall, its hard to benchmark directly.

      this might interest you.
      http://benchmarksgame.alioth.debian.org/

      D 1 Reply Last reply
      0
      • mrjjM mrjj

        What platform ?
        Android?

        Also what do you compare ?
        java vs c++
        or javascript ?

        Is it possible for Qt to perform better than a native app or do you think ive done some horrible mistake?

        Well its possible due to Qt sometimes provide a lighter implementation than the native widget. ( vs wrapping it)
        Also QML is opengl enabled and might draw faster in some cases.

        Also if you compare to java, you should read up on tweaking for performance.
        You might use something that is slow in java to screw the results a bit.

        Overall, its hard to benchmark directly.

        this might interest you.
        http://benchmarksgame.alioth.debian.org/

        D Offline
        D Offline
        dragge
        wrote on last edited by dragge
        #3

        @mrjj Yep at the moment ive only done comparisons on the Android platform but will do iOS soon. The Qt applications are in C++ and the Native Android ones in Java. And ye i can feel that Qt is much lighter. I was just a little suprised how well the Qt applications were performing :P Thanks for your reply.

        jsulmJ 1 Reply Last reply
        0
        • D dragge

          @mrjj Yep at the moment ive only done comparisons on the Android platform but will do iOS soon. The Qt applications are in C++ and the Native Android ones in Java. And ye i can feel that Qt is much lighter. I was just a little suprised how well the Qt applications were performing :P Thanks for your reply.

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

          @dragge Well, Qt can be considered as "native" as well, depends on how you define "native". Qt is a C++ framework and C++ applications are compiled to binary code which is directly executed on the CPU - from this point of view Qt is native. As far as I know Android applications written in Java are compiled to native binaries during installation or first run (since Android 5?, not sure). You could expect these apps to have similar performance but I'm not sure how well the Java compiler used by Google can optimize the code. Probably common C++ compilers are better.

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

          D 1 Reply Last reply
          1
          • jsulmJ jsulm

            @dragge Well, Qt can be considered as "native" as well, depends on how you define "native". Qt is a C++ framework and C++ applications are compiled to binary code which is directly executed on the CPU - from this point of view Qt is native. As far as I know Android applications written in Java are compiled to native binaries during installation or first run (since Android 5?, not sure). You could expect these apps to have similar performance but I'm not sure how well the Java compiler used by Google can optimize the code. Probably common C++ compilers are better.

            D Offline
            D Offline
            dragge
            wrote on last edited by
            #5

            @jsulm What you say is probably right. I didnt really think about those things when i started the project... Theres so much things that can make the benchmarks show off results. But i will continue the way i started. Comparing "Native" applications created with Google and Apple tools, Android Studio and Xcode with applications created with Qt. Thanks for the explanation.

            E 1 Reply Last reply
            0
            • D dragge

              @jsulm What you say is probably right. I didnt really think about those things when i started the project... Theres so much things that can make the benchmarks show off results. But i will continue the way i started. Comparing "Native" applications created with Google and Apple tools, Android Studio and Xcode with applications created with Qt. Thanks for the explanation.

              E Offline
              E Offline
              Eeli K
              wrote on last edited by
              #6

              @dragge Read this: http://sealedabstract.com/rants/why-mobile-web-apps-are-slow/

              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