I made such an option for myself 
I subclassed QListView and then reimplemented the keyPressEvent..
Like this...
void MyListView
::keyPressEvent( QKeyEvent *event
) {
QListViewItemIterator it(this);
if ( (event->key() == Qt::Key_Delete) )
{
while ( it.current() )
{
if( it.current()->isSelected() )
{
ButtonDelete( it.current() );
break;
}
else
{
it++;
}
}
}
}
void MyListView::keyPressEvent( QKeyEvent *event )
{
QListViewItemIterator it(this);
if ( (event->key() == Qt::Key_Delete) )
{
while ( it.current() )
{
if( it.current()->isSelected() )
{
ButtonDelete( it.current() );
break;
}
else
{
it++;
}
}
}
QListView::keyPressEvent(event);
}
To copy to clipboard, switch view to plain text mode
I think this works fine for single selection
It's a different approach than yours, but it's an idea
Bookmarks