How do I control the QTableView row selection color when the control loses focus?
By default, the QTableView changes the selection color to grey when the control loses focus. I would like to remove this behavior and have the selection color be blue regardless of focus. How do I achieve this?
Re: How do I control the QTableView row selection color when the control loses focus?
Have you tried this ?
viewOption.palette.setColor(QPalette::Text, getColor(QColor);
Also use setAlternatingRowColors(true);
Re: How do I control the QTableView row selection color when the control loses focus?
More probably:
or similar.
Re: How do I control the QTableView row selection color when the control loses focus?