Fix infinite loop when setting QRadioElement items

Fix issue #450, setting QRadioElement items now works fine.