M
M
mrZurg2015-05-22 13:09:58
Programming
mrZurg, 2015-05-22 13:09:58

How to make QCheckBox active one of the group or disable all?

Generally there are some QCheckBox.
For convenience, I combined them into QButtonGroup.
While it works like this, when you click on one, the previous one subsides, i.e. only one checkbox is active. But when you click on the same QButtonGroup again, the checkmark does not disappear. those. One is ALWAYS active.
It is necessary that one or no checkmarks be active. Is it possible to somehow set this up in QButtonGroup or in QGroupBox ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yaroslav, 2015-05-22
@torwig

There is a suspicion that catching, processing and setting checked / unchecked for everyone. For if ButtonGroup implies that at least one option must be selected.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question