I have a
QCalendarWidget
QTableView
QCalendarWidget
You can get access to the internal QTableView
object of your calendar widget like this:
QCalendarWidget *c = new QCalendarWidget;
QTableView *view = c->findChild<QTableView*>("qt_calendar_calendarview");
if (view)
{
veiw->setItemDelegate(new MySuperCalendarDelegate);
}
Then you can use a custom delegate that will set proper background and foreground colors.
Also you can check my previous answer on QCalendarWidget
styling.