PDA

View Full Version : [Solved] QCalendarWidget selection color



nabroyan
15th April 2015, 10:41
I have a QCalendarWidget and some days of month are colored (for example holidays are red). When I select a day which is colored, selection clears the color and I can't see it's original color. But when I deselect that day - color is back. Please see in pictures.

11089 11090

Is there a way to keep color even if a day is selected? I know that there is a way to do this for QTableView with delegates, but I can't find anything like this for QCalendarWidget. Any Ideas? Thank you for your time.

Added after 28 minutes:

Answer can be found at http://stackoverflow.com/questions/29643063/qcalendarwidget-selection-color