Hi,
I have inherited QListView to have keypress event to handle the enter/return key.
All works fine but one problem exists, if you enter during edit of an item, that does the action.
Here the actual code :
How bypass the action during edit of the item ?Qt Code:
{ if( ( event->key() == Qt::Key_Enter ) || ( event->key() == Qt::Key_Return ) ) ActivateSelectedItem(); }To copy to clipboard, switch view to plain text mode
Thanks for the help
Bookmarks