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 :
Qt Code:
  1. virtual void keyPressEvent( QKeyEvent* event )
  2. {
  3. QListView::keyPressEvent( event );
  4. if( ( event->key() == Qt::Key_Enter ) || ( event->key() == Qt::Key_Return ) )
  5. ActivateSelectedItem();
  6. }
To copy to clipboard, switch view to plain text mode 
How bypass the action during edit of the item ?
Thanks for the help