PyQt5 QCalendarWidget – Getting Date Text Format
In this article, we will see how we can get the date text format to the specific date in the QCalendarWidget. Setting the date text format makes the specified date looks more special such as increasing the size and other features. Below is how a date with date text format looks like.
In order to do this we will use dateTextFormat method with the QCalendarWidget object.
Syntax : calendar.dateTextFormat()
Argument : It takes no argument
Return : It return dictionary where keys are QDate object and values are QTextCharFormat object
Below is the implementation