Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Enter key press is not working in QListWidget in pyside2
I can't find any signals for when the enter key was pressed on an item in the list (QStandardListItem). Can't seem to find any keypress events either.
Is it possible to "hook up" QListView to an event just like that? How?
There is no such Qt class as
QListView, go to https://doc.qt.io/qt-5/qlistview-members.html and search for
QAbstractItemView::keyPressEventis that's what you really want. Or you can always go via an
Can you provide some example of eventfliter()
QListView::keyPressedis not acceptable to you I do not know.
I am using QlistWidget so is working for the same?
QListViewso, yes. it shares e.g.
Are you looking for the QListWidget::itemActivated signal ?