Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.7.0
-
None
-
-
b733d31f275d09ca81b5e347ca1e9b6c9b216cd4
Description
When creating a
QLineEdit *inputLine = new QLineEdit(this); inputLine->setStyleSheet("QLineEdit:hover {background-color: blue;} QLineEdit {background-color: green;}");
and setting the style sheet to change color when hovering it does not change color on Windows except when first clicking on that line.
This is what currently happens:
However when I click on a box it does work for that box:
But on Linux I get the expected result. When I hover over the boxes without click, it changes color:
I am not sure why this happens. I also tried the same with QSpinBox and on Windows the issue is not there and it behaves the same as the QLineEdit on Linux.