View Full Version : QTableWidget question

20th October 2006, 21:32

I have a table using a QTableWidget and defined a slot on_tableWidget_cellClicked(). The idea is if I click on a certain cell an editor window opens. Now when I navigate the table with the keyboard I like to press enter on the cell and get the same result. I can't find a signal which allows me to do that.
Any hints?
Thanks a lot.

20th October 2006, 21:55
So the editing is done in a separate window? You know, the items could be editable in place too.. ;)
Anyway, there's no such signal, but you can override keyPressEvent() (or install an event filter) to catch the enter press.

20th October 2006, 22:46
it's kind of a spreadsheet where you have a nice big editor window to write your equations. The cell just displays the evaluated value.

Anyway, thanks for the hint I was afraid I had to do it the hard way.