Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to have a user enter a name for a radio button
JNorth last edited by
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?
@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).