I'm trying to understand how the validator framework works with a combo box.

The documentation of QComboBox explains how to set a validator, and the QValidator documentation explains how a validator would work (and also how to subclass one).

That's great but now that I have my custom validator and it's set to the combo box, I can't understand how the combo box interacts with it. Is the "validate" method I wrote called behind the scenes? If so, when? Or am I supposed to cast the QValidator to my own custom type and run the custom validate method on my own?

If anyone can help out with a little background and hopefully a little code to illustrate, I'd be grateful.

Thanks,
Frankie