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 467 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 last edited by
    #1

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

    KroMignonK jsulmJ 2 Replies Last reply
    0
    • fcarneyF Offline
      fcarneyF Offline
      fcarney
      wrote on 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

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

        KroMignonK Offline
        KroMignonK Offline
        KroMignon
        wrote on 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

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

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on 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

          KroMignonK 1 Reply Last reply
          0
          • jsulmJ jsulm

            @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).

            KroMignonK Offline
            KroMignonK Offline
            KroMignon
            wrote on 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

            • Login

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