I want to perform a function when the radio button is pressed in QT
This post is deleted!
Have you looked at the signals available in QRadioButton like checked(), clicked(), pressed() etc ? Make signal & slot communication with clicked() signal.
are you saying this?
between the setText() , i enter the command but it doesn't work
Is the radioButton already checked ? If yes, then only it works. Otherwise it does not work. Since u r telling it does not work, i'm sure it is not checked. Who is supposed to click on the RadioButton ?
i will test qt , check button . and add code
but device dosen't work.
- Can you confirm whether RadioButton is selected ?
- Can you confirm whether code piece you pasted here, is executed ?
- Can you tell me when above code piece executed ? Is it based on some condition ? OR
- Are you expecting the above code piece to be executed when you click on the radioButton ?