[SOLVED] QTableWidget: how to find if return key pressed on on_tableWidget_pressed event?
Hi, I like to know how to find if return key on a was pressed on a QTableWidget row using on_tableWidget_pressed
pressed() is not an event. It's a signal. You can't get the pressed key with it, only the item.
Subclass QTableWidget and reimplement "keyPressEvent":http://qt-project.org/doc/qt-5/qwidget.html#keyPressEvent or use "event filter":http://qt-project.org/doc/qt-5/qobject.html#installEventFilter if you don't want to subclass.
all right, I understand now, thanks.