Quote Originally Posted by wysota View Post
Qt Code:
  1. if (option->state & (QStyle::State_Selected | QStyle::State_HasFocus))
To copy to clipboard, switch view to plain text mode 
Just a quick idea for the rect. What happens when you edit the state, to tell the style that it was not selected at all? (You probably could do that via extension?)

Or would it then stop drawing the cursor too?