Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved New on Qt

    General and Desktop
    3
    3
    432
    Loading More Posts
    • 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.
    • martin-one
      martin-one last edited by A Former User

      Hello, maybe for some of you this is gonna sound simply, but I cant do it.

      Sounds simple, I have an Qt Widget app, I have a 'Bttom1' in my GUI, what I want its, when I push that Button, I save a number or letter in a string variable, and i can show it in real time in the GUI, this is the basic thing.
      I have like 10 buttons, so if i push them, the variable string is gonna contain all that letters or numbers.

      Is that even possible?
      (Im not a Native English speaker, so if you dont understand, please let me know)
      Thanks in advanced!

      1 Reply Last reply Reply Quote 0
      • Q
        Q139 last edited by

        Noone can do it on first time.
        Look on youtube qt tutourials.

        1 Reply Last reply Reply Quote 0
        • Ni.Sumi
          Ni.Sumi last edited by

          Hello @martin-one ,

          Yes, it' possible. Please have a look in Qt calculator example. It is approximately close to your need. (This is just sample to say it is possible to display number whatever you give through button)

          http://doc.qt.io/qt-5/qtwidgets-widgets-calculator-example.html

          Also, you can find the same in Qt Creator example. Click on "welcome" which is at top left corner and then in search "calculator" . you can find this and run it.

          1 Reply Last reply Reply Quote 4
          • First post
            Last post