Qt learning day 1: QCheckBox (multiple choice and single choice)

1. Control multiple checkbox single selection.
First select three checkboxes to add to the ui interface
Insert picture description here
. After running the program, you will find that all three can be selected
Insert picture description here
. Select the three checkboxes in turn, and tick the arrows.
Insert picture description here

Insert picture description here
At this point, there will be a question.
If you want to make the other three checkboxes select one again, that is, what to do
with every three checkboxes. The solution is
to add a widget first, and then put the three checkboxes in weidget Tick ​​the three checkboxes to select autoExclusive and
Insert picture description here
run it to see the effect
Insert picture description here
August 13, 2020 23:45:04
Good night

Guess you like

Origin blog.csdn.net/qq_43475285/article/details/107994051