davethomaspilot
7th December 2012, 22:32
I've been struggling with how to get a collection of toggling QPushbuttons (not checkboxes) that aren't exclusive. Each button should be checkable regardless of the state of the other buttons.
I've set "checkable" and tried both autoexclusive on and off.
I think I need them in some kind of container, since I want to use the group in several places in the GUI. They are in a vertical layout now.
I read about QButtonGroup, but I don't see one of those in Qt Designer that I could try out.
Is QButtonGroup what's needed to get non-exclusive QPushButtons? Can I get one from Qt Designer, or do I need to just add it in the code myself?
Thanks,
Dave Thomas
I've set "checkable" and tried both autoexclusive on and off.
I think I need them in some kind of container, since I want to use the group in several places in the GUI. They are in a vertical layout now.
I read about QButtonGroup, but I don't see one of those in Qt Designer that I could try out.
Is QButtonGroup what's needed to get non-exclusive QPushButtons? Can I get one from Qt Designer, or do I need to just add it in the code myself?
Thanks,
Dave Thomas