I use delegate to draw the rows.
In paint function:
Qt Code:
  1. if( option.state & QStyle::State_Selected )
  2. {
  3. QRect rect( option.rect );
  4. rect.setLeft( 0 );
  5. painter->fillRect( rect, option.palette.highlight() );
  6. }
To copy to clipboard, switch view to plain text mode 

For this, all the area can be highlighted. But overwritted decoration can't be shown. Maybe the color of decoration should be changed when selected.