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. qt mathematical expression
QtWS25 Last Chance

qt mathematical expression

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 4 Posters 333 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.
  • I Offline
    I Offline
    IknowQT
    wrote on 8 Sept 2021, 05:22 last edited by
    #1

    QExpressionEvaluator

    Is there a way to distinguish whether this formula is correct or not?
    For example
    3*(20-10
    I want to let you know that there's an error in this formula when you enter an equation without parentheses.
    Is it possible to do engineering formulas as well as basic four-line operations?

    1 Reply Last reply
    0
    • V Offline
      V Offline
      VRonin
      wrote on 8 Sept 2021, 14:41 last edited by
      #3

      Have a look at ExprTk

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      J 1 Reply Last reply 8 Sept 2021, 15:51
      3
      • S Offline
        S Offline
        sierdzio
        Moderators
        wrote on 8 Sept 2021, 05:45 last edited by
        #2

        There is isValid() method, but it won't tell you where and what the error is.

        BTW. Qt extended has been abandoned a long time ago.

        (Z(:^

        1 Reply Last reply
        0
        • V Offline
          V Offline
          VRonin
          wrote on 8 Sept 2021, 14:41 last edited by
          #3

          Have a look at ExprTk

          "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
          ~Napoleon Bonaparte

          On a crusade to banish setIndexWidget() from the holy land of Qt

          J 1 Reply Last reply 8 Sept 2021, 15:51
          3
          • V VRonin
            8 Sept 2021, 14:41

            Have a look at ExprTk

            J Offline
            J Offline
            JoeCFD
            wrote on 8 Sept 2021, 15:51 last edited by
            #4

            @VRonin Good one. Thanks.

            1 Reply Last reply
            0

            4/4

            8 Sept 2021, 15:51

            • Login

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