PyQt5 QCalendarWidget – Setting Date Text Format
In this article we will see how we can set date text format to the specific date in the QCalendarWidget. Setting date text format makes the specified date looks more special such as increasing the size and other features. Below is how date with date text format looks like.
In order to do this we will use setDateTextFormat method with the QCalendarWidget object.
Syntax : calendar.setDateTextFormat(date, format)
Argument : It takes two argument first is QDate object and second is QTextCharFormat object
Return : It return None
Below is the implementation