I can use the stylesheet to change the color of a cell on hover in my QTableView using the following:
viewer->setStyleSheet("::item:hover { color:rgb(0,0,255) }");
viewer->setStyleSheet("::item:hover { color:rgb(0,0,255) }");
To copy to clipboard, switch view to plain text mode
This only changes the color of the cell being hovered over. I would like the entire row to have the same effect. I get the same behavior even when I set the selection behavior to Qt::SelectRows.
Is there a simple way to do this using stylesheets?
Bookmarks