PDA

View Full Version : Modify the text format of a single date in the QCalendarWidget



ouekah
24th April 2010, 15:07
Hi,

is there a way to modify the text format of a single date in the QCalendarWidget ?

I'm looking for a function which looks like:



setDateTextFormat(QDate date, const QTextCharFormat & format )


I have found:



void QCalendarWidget::setWeekdayTextFormat ( Qt::DayOfWeek dayOfWeek, const QTextCharFormat & format )


But this is not flexible enough for what I want to do...

Any ideas ?

ouekah
24th April 2010, 15:31
Sorry for this stupid post. I have just found the function I'm looking for in the documentation...