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?)
Bookmarks