Re: QComboBox and QValidator
Is there a question here somewhere or did you just want to complain? If the latter then I can understand how you feel, if the former then you have to be more specific.
Re: QComboBox and QValidator
Yes I wanted to complain. However, it was suppose to be a question too: Is there a way of setting a qvalidator to the qcombobox and retreving it when the qcombobox is not editable?
Re: QComboBox and QValidator
Quote:
Originally Posted by
mrandreas
Yes I wanted to complain. However, it was suppose to be a question too: Is there a way of setting a qvalidator to the qcombobox and retreving it when the qcombobox is not editable?
If it is just about attaching one object to another then you can make the validator a child of the combobox and then query the combobox for its children inheriting QValidator interface (using QObject::findChild).