PDA

View Full Version : How to set the validation for checkboxes?



sangee
10th August 2012, 07:58
I am using 10 checkboxes in my program,and i want to check only 3 checkboxes at a time.so how to set the validation for this?

BalaQT
10th August 2012, 08:59
hi,

This is just a logical thing to do.
nothing to do with Qt.


on clicked(bool) signal u hav to count the number of checkbox which are checked.
ex:
do a foreach loop
and hav a counter to find the number of chkboxes which are checked.

hope it helps,
Bala