parent
735a095ced
commit
ef78b7957c
1 changed files with 4 additions and 0 deletions
|
@ -16,6 +16,10 @@ NoScrollComboBox::NoScrollComboBox(QWidget *parent)
|
|||
setEditable(true);// can set to false manually when using
|
||||
this->completer()->setCompletionMode(QCompleter::PopupCompletion);
|
||||
this->completer()->setFilterMode(Qt::MatchContains);
|
||||
|
||||
QRegularExpression re("[A-Za-z_0-9]+");
|
||||
QValidator *validator = new QRegularExpressionValidator(re);
|
||||
this->setValidator(validator);
|
||||
}
|
||||
|
||||
void NoScrollComboBox::wheelEvent(QWheelEvent *event)
|
||||
|
|
Loading…
Reference in a new issue