Dimon
29th September 2009, 17:53
Hi all!
Is there any way to change red color of weekeneds (Sunday, Saturday) in the QCalandarWidget to some another color? Of cause, I can override PaintCell() and draw the according dates myself, but it does not help to customize color of the short day names ("Sat" and "Sun") in the horizontal header. I noticed, that Qt always set the QCalendarDelegate's Qt::ForegroundRole value as a Palette::Text every time, it needs to use a red color for drawing. But QCalendarDelegate, used by Qt inside QCalendarWidget, is hidden from the user and I don't know how to access and customize it. Is there any solution from this issue?
Thanks in advance.
Is there any way to change red color of weekeneds (Sunday, Saturday) in the QCalandarWidget to some another color? Of cause, I can override PaintCell() and draw the according dates myself, but it does not help to customize color of the short day names ("Sat" and "Sun") in the horizontal header. I noticed, that Qt always set the QCalendarDelegate's Qt::ForegroundRole value as a Palette::Text every time, it needs to use a red color for drawing. But QCalendarDelegate, used by Qt inside QCalendarWidget, is hidden from the user and I don't know how to access and customize it. Is there any solution from this issue?
Thanks in advance.