mirror of
https://github.com/pyapp-kit/superqt.git
synced 2026-01-04 19:31:24 +01:00
* wip * wip * more wip * progress * more docs * more changes * add link * more examples and improvements * fix check-manifest * sort members * remove autogen images * remove _images * add font docs * add link to utils
843 B
843 B
QSearchableListWidget
QSearchableListWidget is a variant of
QListWidget that add text entry
above list widget that allow to filter list of available options.
Due to implementation details, this widget it does not inherit directly from
QListWidget but it does fully
satisfy its api. The only limitation is that it cannot be used as argument of
QListWidgetItem constructor.
from qtpy.QtWidgets import QApplication
from superqt import QSearchableListWidget
app = QApplication([])
slider = QSearchableListWidget()
slider.addItems(["foo", "bar", "baz", "foobar", "foobaz", "barbaz"])
slider.show()
app.exec_()
{{ show_widget() }}
{{ show_members('superqt.QSearchableListWidget') }}