Hi,

i have a model, were each item has among others a boolean option. The logical approach of using QDataWidgetMapper works quite well for all the other fields (mapped to LineEdits, ComboBoxes, etc.). But I have no success mapping this boolean option to two QRadioButtons.

Here is what I do:
- Groupbox with two RadioButtons and autoExcluse == true
- QDataWidgetMapper maps the Variable to the QRadioButton for "true"

Here is what I expect:
- model->setData ( "true" ) when this QRadioButton is selected
- model->setData ( "false") when the other QRadioButton is selected

Here is what I get:
- model->setData ("true") when the unmapped QRadioButton is checked (which should be false)
- nothing happens, when the mapped QRadioButton is checked

I used connect(radioButton, SIGNAL(toggled(bool)), mapper, SLOT(submit())), but that works only sometimes and looks like a hack.

Any Ideas? Should I subclass QItemDelegate and look at the events? if so, which? and then do what? Or rather QRadioButton, so that it behaves?

Thanks a lot for your help
Simon