Can I have a QComboBox with a validator with invalid input and still have it editable?
To answer my own question; No.
So my question is there an easy workaround for this before I dig deeper into a solution.
I need to have a editable QComboBox with numeric input entries with attached explanation test.
Qt Code:
cBox->setEditable(true); cBoxt->setValidator(iValidator); cBox->addItem(tr("1 - this an explanation")); cBox->addItem(tr("2 - this also an explanation"));To copy to clipboard, switch view to plain text mode
The above will not function correctly due to the validator but I must maintain the ability to let the user enter a number that might not be present in the combobox.
Any suggestions?
Bob
Bookmarks