They are flags. You should combine a set of flags by using OR operator:
Notice what QStyleOption::initFrom() docs say.. It already initializes state so basically you overrode it with plain QStyle::State_MouseOver.Qt Code:
To copy to clipboard, switch view to plain text mode
Bookmarks