The code is somewhat cluttered, it's hard to say what each variables represent... Anyway... you can get the value in the spinbox by using QSpinBox::value() and the value of the checkbox using QCheckBox::isChecked(). Then you can make an if statement that checks whether the checkbox is checked and if the item should be accepted. Pseudo code follows:
Qt Code:
if(firstcheck->isChecked() && item->value()<firstspin->value()){ ignoretheitem = true; } if(secondcheck->isChecked() && item->value()>secondspin->value()){ ignoretheitem = true; }To copy to clipboard, switch view to plain text mode
Bookmarks