QCalendarWidget hovering a Day
-
At the Moment im searching for something to easily make a Hovereffect when i hover over a Day in QCalendarWidget, without making a Delegate or change something in the Class. I tried it with QSS, but i found no Solution. I read that its not possible what i want to do. Is there another easy Possibility?
-
You're going to have to subclass the widget if you want to do this. You can't use a delegate because it's not a view, and there is no other way to do it.
Good news is subclassing the
QCalendarWidgetand adding in code to deal with hovering over the current day should be fairly easy. -
@Fuel-0 You could get hover via a stylesheet, but AFAIK there is no way to determine if you are hovering over the current day.
I'm going to guess that it wouldn't be possible via stylesheets, but I haven't tried or looked at css in Qt in a while so it could have been added and I don't know about it. :)