tags:

views:

26

answers:

1

Hi, I have multiple labels on which I need to QLabel->setValidator(QValidator)

groups of them have the same validation rules. Can I reuse the same QIntValidator for all labels that have the same rules?

+3  A: 

I am assuming you mean QLineEdit. But yes you can.

Harald Scheirich