你所谓合成一个变量,加减乘除只能选择一个?
那把这四个radio都添加到buttongroup就可以了。
void QButtonGroup::addButton ( QAbstractButton * button )
Adds the given button to the end of the group's internal list of buttons. An id will be assigned to the button by this QButtonGroup. Automatically assigned ids are guaranteed to be negative, starting with -2. If you are also assigning your own ids, use positive values to avoid conflicts.