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. Making a simple calculator

Making a simple calculator

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 925 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.
  • P Offline
    P Offline
    peacecats
    wrote on last edited by
    #1

    "pic":http://puu.sh/7ek35.png

    I want the text edit box to work as a sort of "cin". For instance, let's refer to whatever was entered in the text edit box as x. I'd like to have the text label under it changed to "x-20" accordingly. Not literally "x-20" though, whatever the result of x-20 was. If any of you could refer me to some tutorials or tell me how to do it in the thread I'd greatly appreciate.

    1 Reply Last reply
    0
    • JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by
      #2

      Hi, and welcome to the Qt Dev Net!

      Are you making your calculator in C++ or QML? There are examples for both:

      • C++ example: http://qt-project.org/doc/qt-5/qtwidgets-widgets-calculator-example.html
      • QML example: http://qt-project.org/doc/qt-5/qtquick-demos-calqlatr-example.html

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      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