Release edit in QTableWidget Cell

Posted by Schomin on Stack Overflow See other posts from Stack Overflow or by Schomin
Published on 2010-04-22T17:51:56Z Indexed on 2010/04/22 17:53 UTC
Read the original article Hit count: 234

Filed under:
|
|

Basically I am trying to give the enter key the same functionality as the return key has when editing a cell in a qtablewidget. If editing a cell and enter is pressed I want it to jump out of editing that cell just like return does. It feels like I've literally tried everything. I've even tried passing a return press event to qcoreapplication. It seems like if your editing a cell and you press a key to trigger an action it wont happen. That seems to be what the problem is and I'm not sure how to get around that. I've been setting up all of my keyboard shortcuts for this program as actions because it seems easier to set up. Is there another way to do this that would allow the key event to happen when editing a cell?

Can anyone help out with this?

Thank you in advance.

Tried this. It didn't work for me. http://stackoverflow.com/questions/518447/how-can-i-tell-a-qtablewidget-to-end-editing-a-cell

© Stack Overflow or respective owner

Related posts about qt

Related posts about qt4