Enter key press is not working in QListWidget in pyside2
Unsolved
Qt for Python
-
@yashi95
There is no such Qt class asQStandardListItem
.For a
QListView
, go to https://doc.qt.io/qt-5/qlistview-members.html and search forkey
, e.g.QAbstractItemView::keyPressEvent
is that's what you really want. Or you can always go via aneventFilter()
if required. -
@yashi95
https://doc.qt.io/qt-5/eventsandfilters.html#event-filters
https://doc.qt.io/qt-5/qobject.html#eventFilterThough why
QListView::keyPressed
is not acceptable to you I do not know. -
Hi,
Are you looking for the QListWidget::itemActivated signal ?