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. How to have a user enter a name for a radio button
Forum Updated to NodeBB v4.3 + New Features

How to have a user enter a name for a radio button

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

    Hello,

    New to QT! I am wanting to have a user enter a name in a configuration tab that is used to name a radio button.
    Example would be you have 10 radio buttons. These radio button will allow a user to select an item to change information.
    I want the user to declare the name of each radio button in a configuration tab. The name of each button is sent to the main radio display tab.
    Is this possible? How can I do it?

    Cheers,
    Jim

    jsulmJ 1 Reply Last reply
    0
    • J JNorth

      Hello,

      New to QT! I am wanting to have a user enter a name in a configuration tab that is used to name a radio button.
      Example would be you have 10 radio buttons. These radio button will allow a user to select an item to change information.
      I want the user to declare the name of each radio button in a configuration tab. The name of each button is sent to the main radio display tab.
      Is this possible? How can I do it?

      Cheers,
      Jim

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @JNorth Yes, it is possible. Use QLineEdit to enter a string (name for a radio button). If user finishes entering the text use the text from this QLineEdit and set it in QRadioButton (see http://doc.qt.io/qt-5.8/qabstractbutton.html#text-prop).

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      3

      • Login

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