WSpinBox + WValidator
It appears Validators don't work on Spinboxes.
// does not work
WSpinBox *b2 = new WSpinBox(root());
WIntValidator *val2 = new WIntValidator(0, 1);
WLineEdit *tst = new WLineEdit(root());
WIntValidator *val3 = new WIntValidator(0, 1);
I have tried this with the git version, and the latest release.
Updated by Koen Deforche about 10 years ago
- Status changed from New to Feedback
- Assignee set to Koen Deforche
This may indeed be unexpected. The reason is that the spinbox already uses a validator to accept only valid input according to the defined range and prefix and suffix definitions.
Are you trying to accomplish anything beyond that ?