Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. What is the performance of QT Script in comparison with C ++?
Qt 6.12 LTS is out! See what's new in the release blog

What is the performance of QT Script in comparison with C ++?

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 1.4k 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.
  • A Offline
    A Offline
    AlekseyB
    wrote on last edited by
    #1

    Hi,
    I want to implement some of the functionality with QT Script, but I do not know what will be the performance degradation. My program will call 1000 times not a very complicated user function. What will be the slowdown in comparison with the implementation of this function in C ++?

    aha_1980A 1 Reply Last reply
    0
    • A AlekseyB

      Hi,
      I want to implement some of the functionality with QT Script, but I do not know what will be the performance degradation. My program will call 1000 times not a very complicated user function. What will be the slowdown in comparison with the implementation of this function in C ++?

      aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi @AlekseyB,

      sorry, but your question is so vague, that nobody will be able to give you an honest answer.

      Everything from "the user will not notice" up to "the program is unusable" is possible.

      Example: "sleep(4 seconds)" is a simple user function. Called 1000 times, the execution lasts over an hour.

      So the best tip i can give you: benchmark!

      Qt has to stay free or it will die.

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

        Hi
        It will be slower. QT Script, interepented. c++ is compiled.
        Will it be slow ? Depends on what the user function is doing.

        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
        • Unsolved