Hello,
You can change the color of the days in a QCaelndarWidget so:
format.
setForeground(QBrush(Qt
::white, Qt
::SolidPattern));
calendarWidget->setWeekdayTextFormat(Qt::Saturday, format);
QTextCharFormat format = calendarWidget->weekdayTextFormat(Qt::Saturday);
format.setForeground(QBrush(Qt::white, Qt::SolidPattern));
calendarWidget->setWeekdayTextFormat(Qt::Saturday, format);
To copy to clipboard, switch view to plain text mode
First i take the existing format for the specified week day, then i set a different brush and set the modified format back to the needed day. This modifies the name of the day and also the date.
Hope it helps you.
Bookmarks