The CSS is incorrect, try this:




QTableWidget::item:selected{background-color:lightblue;}
QTableWidget::item:hover{background-color: lightblue;}...