Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Does using QML affect program performance?
Forum Updated to NodeBB v4.3 + New Features

Does using QML affect program performance?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
5 Posts 4 Posters 470 Views 2 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.
  • S Offline
    S Offline
    SuperJarvisCN
    wrote on 12 Oct 2020, 19:38 last edited by
    #1

    Compared to using c++.
    Does using QML affect program performance?

    K J 2 Replies Last reply 13 Oct 2020, 06:59
    0
    • F Offline
      F Offline
      fcarney
      wrote on 12 Oct 2020, 21:42 last edited by
      #2

      No, because I do the heavy lifting in C++.

      C++ is a perfectly valid school of magic.

      1 Reply Last reply
      0
      • S SuperJarvisCN
        12 Oct 2020, 19:38

        Compared to using c++.
        Does using QML affect program performance?

        K Offline
        K Offline
        KroMignon
        wrote on 13 Oct 2020, 06:59 last edited by
        #3

        @SuperJarvisCN said in Does using QML affect program performance?:

        Does using QML affect program performance?

        It depends how you plan to use QML!
        It is much more easier to create attractive user interfaces with QML than in plain C++.
        But QML is a Javascript based language, so there is an overhead because of the Javascript-Engine.

        If you only use QML only for the HMI part and C++ for the "business-logic", this could be a powerful combination with acceptable performances.

        It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

        1 Reply Last reply
        1
        • S SuperJarvisCN
          12 Oct 2020, 19:38

          Compared to using c++.
          Does using QML affect program performance?

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 13 Oct 2020, 07:19 last edited by
          #4

          @SuperJarvisCN Just a note: there is a QML compiler. It was commercial in the past, but as far as I know it is available now with open source license also (not 100% sure though).

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

          K 1 Reply Last reply 13 Oct 2020, 07:57
          0
          • J jsulm
            13 Oct 2020, 07:19

            @SuperJarvisCN Just a note: there is a QML compiler. It was commercial in the past, but as far as I know it is available now with open source license also (not 100% sure though).

            K Offline
            K Offline
            KroMignon
            wrote on 13 Oct 2020, 07:57 last edited by
            #5

            @jsulm said in Does using QML affect program performance?:

            It was commercial in the past, but as far as I know it is available now with open source license also (not 100% sure though).

            Yes, since Qt 5.11 Qt Quick Compiler is also available for Open Source version, according to wiki

            But QML still based on Javascript and even if it is quicker after compilation, there are still no variable check, etc.

            It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

            1 Reply Last reply
            0

            1/5

            12 Oct 2020, 19:38

            • Login

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