For changing color of item when mouse is over, you dont need to capture mouse move events.

You simply need a check in the paint function -
Qt Code:
  1. if(option->state & QStyle::State_MouseOver)
To copy to clipboard, switch view to plain text mode 
and then color the item accordingly.