Skip to content

QSearchableComboBox

A QComboBox that you can type into: it shows a list of the items that contain the typed text (ignoring case), to choose from. Items are added as in a QComboBox, and typed text that doesn't match an item isn't added to it.

QSearchableComboBox QSearchableComboBox
from qtpy.QtWidgets import QApplication

from superqt import QSearchableComboBox

app = QApplication([])

combo = QSearchableComboBox()
combo.addItems(["foo", "bar", "baz", "foobar", "foobaz", "barbaz"])
combo.show()

app.exec()

QSearchableComboBox

QSearchableComboBox(parent: QWidget | None = None)

ComboCox with completer for fast search in multiple options.

Subclass of QComboBox

QSearchableComboBox inherits all of QComboBox's methods, signals, and properties. Only those that superqt adds or changes are listed here.

Methods

ComboCox with completer for fast search in multiple options.

addItem

addItem(*args)

addItems

addItems(*args)

insertItem

insertItem(*args) -> None

insertItems

insertItems(*args) -> None