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. Implementation of mathematical expressions in the text box
QtWS25 Last Chance

Implementation of mathematical expressions in the text box

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 5 Posters 2.3k 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.
  • M Offline
    M Offline
    Malik
    wrote on last edited by
    #1

    Is it possible to implement in Qplaintextedit or Qtextedit input of mathematical formulas (roots, fractions, integrals) and display as in word or as in graphic calculators? If possible, which libraries and functions to connect
    There was an idea to use Qplaintextedit and to lower and raise the line depending on the formula, are there any such functions?

    Adding character encoding will not display as needed

    0_1566202452221_248c1bd7-6ed7-448b-a13c-bdde528ad222-image.png

    Pablo J. RoginaP 1 Reply Last reply
    1
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Qwt's QwtText class might be what you are looking for.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      5
      • M Malik

        Is it possible to implement in Qplaintextedit or Qtextedit input of mathematical formulas (roots, fractions, integrals) and display as in word or as in graphic calculators? If possible, which libraries and functions to connect
        There was an idea to use Qplaintextedit and to lower and raise the line depending on the formula, are there any such functions?

        Adding character encoding will not display as needed

        0_1566202452221_248c1bd7-6ed7-448b-a13c-bdde528ad222-image.png

        Pablo J. RoginaP Offline
        Pablo J. RoginaP Offline
        Pablo J. Rogina
        wrote on last edited by
        #3

        @malik yes, please look at the MathML capability of the widget suggested by @SGaist

        Upvote the answer(s) that helped you solve the issue
        Use "Topic Tools" button to mark your post as Solved
        Add screenshots via postimage.org
        Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

        1 Reply Last reply
        3
        • U Offline
          U Offline
          uwer
          wrote on last edited by
          #4

          The MathML rendered can also be found in a standalone version ( with improvements ) here: https://github.com/uwerat/qwt-mml-dev.

          The code originally comes from a Qt solutions package. It can be useful, but does not have the quality you would expect from Qwt or what you find in the official set of Qt modules. I'm not 100% sure of the license myself - the code comes from a version the has once been released under the LGPL by Nokia, but when having a commercial license you might be allowed to do more with it. The patches that have been made since then are formally under the Qwt license, but in fact I don't care.

          Uwe

          1 Reply Last reply
          1
          • V Offline
            V Offline
            VHuffaker
            wrote on last edited by
            #5

            Our Qt-based app needed a MathML renderer, and we found one at www.mmlsoft.com (commercial license). Their Formulator widget used to be based on Qt widgets. It doesn't seem to still be available in that form, but maybe they can help. It worked well for us.

            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