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.
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
¶
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.