I just finished with my web application’s GUI part, which relies heavily on groups of radio buttons to provide an option mechanism.
I am looking to collect user choices from radio button groups in order to provide input parameters in certain algorithms.
Wt has not a connection function of this kind declared in its WRadioButton class and the way of creating radio buttons makes uneasy to store user’s radio button choice.
How can I proceed on this?
UPDATE: I tried to obtain choices by using checkedButton() (declared in WRadioButton class) but my method didn’t work properly.
I think it’s easier to look at the methods and signals of WButtonGroup: selectedId(), which returns the id of the selected WRadioButton, or checkedChanged(), which is called when the selection changes, with the checked button. checkedButton() on the WButtonGroup should work too.