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. New on Qt
Qt 6.11 is out! See what's new in the release blog

New on Qt

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 792 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.
  • martin-oneM Offline
    martin-oneM Offline
    martin-one
    wrote on last edited by A Former User
    #1

    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
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

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

      1 Reply Last reply
      0
      • Ni.SumiN Offline
        Ni.SumiN Offline
        Ni.Sumi
        wrote on last edited by
        #3

        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
        4

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved