Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Migrating away from QtScript
Forum Update on Monday, May 27th 2025

Migrating away from QtScript

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 470 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.
  • D Offline
    D Offline
    DBoosalis
    wrote on last edited by
    #1

    I have a Qt 4.8 application that I ported over to Qt5.2. I am using Qt's Javascript engine in my C++ application which means I use QtScript. The purpose of this script is to provide a user a way to write mathematical expressions.

    I am worried that QtScript is going to go away in the Qt 5 series as it is only an addon right now, and the documentation says to use QJS* classes located in QML. I see these classes are exposed in the C++ list of classes. Should I move to them, are they faster ? Are there any other benefits to the new QJS classes ?

    Maybe I should get rid of the Javascript as it is used quiet intensively for filtering live streaming data. Can anyone recommend a good C++ library that will allow me to dynamically create, and evaluate algebraic expressions. Something like :

    @"if (( $price < low) && ($volume > averageVolume*1.10))@

    Any feed back greatly appreciated.
    -David

    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