How to retrieve the name of a checkbox or radiobutton
-
Hi,
Is there a way to extract the name given to a checkbox or a radiobutton that can be used in a global scope among many different widgets?? -
Hi,
What do you mean by name ? The text given to your checkbox ?
-
Use the text() to get the name.
For putting it to global scope, use qApp->setProperty("propertyname","value") and retrive using property(const char * name) and convert it to QString