PDA

View Full Version : Set hover style for entire row in QTableView



dpace
22nd September 2011, 21:45
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) }");

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?