Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Brainstorm
  4. How to use Qt to architect an interactive pretty print calculator interface

How to use Qt to architect an interactive pretty print calculator interface

Scheduled Pinned Locked Moved Brainstorm
3 Posts 3 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.
  • H Offline
    H Offline
    hans977
    wrote on last edited by
    #1

    I want to make an interactive pretty print (http://en.wikipedia.org/wiki/Prettyprint#Pretty-printing_mathematics) calculator that uses formulas like you might find in a text book, only they are editable, and movable. I have done some GUI stuff in Qt/C++, putting widgets together and drawing on them, but not anything like this.

    I plain to have the calculating and input parsing parts in a separate package, and my input for the front end would be something like MathML. So this question only has to do with how to display editable pretty print formulas. I was pointed to the MML widget but as far as I can tell it generates an uneditable bitmap like picture, but I will test it out more. I think I will need to have widgets that are embedded in each other and change how they draw themselves depending on what is in them or what they are in, and they will also have to respond to mouse and keyboard input. I want to be able to move them around on a page and drop them on each other. What Qt components would lend themselves to this kind of application, and what are some ideas on how to architect the interface?

    Thanks

    1 Reply Last reply
    0
    • W Offline
      W Offline
      Wilk
      wrote on last edited by
      #2

      Hello.
      Try to look at Qt-based TeXmacs sources - there you may find an answer for your question.

      1 Reply Last reply
      0
      • K Offline
        K Offline
        koahnig
        wrote on last edited by
        #3

        You may want to have a look on to "QWTMathMLDocument":http://qwt.sourceforge.net/class_qwt_math_m_l_document.html

        Vote the answer(s) that helped you to solve your issue(s)

        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