[Qt-interest] QButtonGroup "selectedId"

Michael Satterwhite michael at weblore.com
Wed Mar 4 19:56:43 CET 2009


I'm using QT3 and using QDesigner to build the form.

I have a QButtonGroup with three radio buttons (Call them Button1, Button2, 
and Button3). They are created added to the QButtonGroup in the order named 
above. When I look at the selectedIds, however Button1 = 1, Button2 = 2, and 
Button3 = 0 - which is not a logical order.

Can anyone explain how the ids for the included buttons get set? Is there a 
way I can override / control it?

Thanks in advance
---Michael



More information about the Qt-interest-old mailing list