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. Write Symbol
Forum Updated to NodeBB v4.3 + New Features

Write Symbol

Scheduled Pinned Locked Moved General and Desktop
11 Posts 5 Posters 5.7k 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.
  • P Offline
    P Offline
    Pissio
    wrote on last edited by
    #1

    Hi everybody,
    I'm developing a scientific calculator but I have some problem with the symbol.
    For example I found the code for drawing raise to second (\262) and thrid (\263).

    But I need the code for representing the symbols of:

    • root
    • cube root
    • greek pi
    • ^ -1
    • ^x
    • subscript a

    Thanks to everybody.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      alexander
      wrote on last edited by
      #2

      Maybe, it'll be better if you will render the symbols as images.

      1 Reply Last reply
      0
      • P Offline
        P Offline
        Pissio
        wrote on last edited by
        #3

        This symbol are represent in a push button. How can I insert the image on the button?

        1 Reply Last reply
        0
        • T Offline
          T Offline
          tobias.hunger
          wrote on last edited by
          #4

          http://www.unicode.org/charts/ has charts with all the symbols defined by unicode. Qt handles unicode, so any of them works, provided your font contains the symbol.

          1 Reply Last reply
          0
          • A Offline
            A Offline
            andre
            wrote on last edited by
            #5

            One way to get an image on your button, is to use QToolButton instead of QPushButton. You can use a QAction to represent the operation (root, cube root, etc.) or constant (pi, e, etc.). You can associate an image with a QAction, and it will be rendered on your tool button automatically.

            1 Reply Last reply
            0
            • P Offline
              P Offline
              Peppy
              wrote on last edited by
              #6

              I've got some fonts which has this especial function (mathematical fonts) ... Images (for me) aren't good solution, but in any way you will need to do a lot of positioning (indexes, powers of number, roots, sums, prods, and so on...)

              1 Reply Last reply
              0
              • P Offline
                P Offline
                Peppy
                wrote on last edited by
                #7

                I think a great library of fonts (but with fees: http://new.myfonts.com/search/tag:math/fonts/)
                MS Word (2007+) uses this font: http://www.microsoft.com/typography/fonts/family.aspx?FID=360

                Free font(s): http://www.micropress-inc.com/fonts/tmmath/tmmain.htm

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  andre
                  wrote on last edited by
                  #8

                  [quote author="Peppy" date="1305723664"]I've got some fonts which has this especial function (mathematical fonts) ... Images (for me) aren't good solution, but in any way you will need to do a lot of positioning (indexes, powers of number, roots, sums, prods, and so on...)[/quote]

                  What are you talking about? Positioning? How? What kind of positioning do you think needs doing if you just want to put it on a button?

                  1 Reply Last reply
                  0
                  • P Offline
                    P Offline
                    Peppy
                    wrote on last edited by
                    #9

                    Example: If you have a small index under function how you can get it there?

                    On button? No. I mean on a "paper". It will be clickable as in Word 2003 (MS Equation 3.0) ?

                    It's quite a lot of work, but I hope it will come out. :)

                    1 Reply Last reply
                    0
                    • A Offline
                      A Offline
                      andre
                      wrote on last edited by
                      #10

                      That is a different issue, Peppy. You are confusion the discussion. The topic starter was after buttons:

                      [quote author="Pissio" date="1305708726"]This symbol are represent in a push button. How can I insert the image on the button?[/quote]

                      It is for that purpose that I suggest to use images. If you want to create editable formulas in some kind of editor, you are dealing with quite another topic.

                      1 Reply Last reply
                      0
                      • P Offline
                        P Offline
                        Peppy
                        wrote on last edited by
                        #11

                        Oh, I am sorry...Yes, that way, should be better to use images (but IMHO it's still better to use fonts :-D :-D )

                        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