In this article we will see how we can set skin to the months menu of the QCalendarWidget. Month menu is the QMenu object child of calendar, it appear when user press on the month name so that user can select the month, setting skin to QCalendarWidget is not like setting skin to the other widgets, calendar is widget which has many child i.e component we can set skin to independent component as well. Skin is basically background image which adjust its size according to the size of the place
In order to do this we will use setStyleSheet method with the QCalendarWidget object, below is the style sheet code
QCalendarWidget QMenu
{
border-image : url(image.png);
}
Below is the implementation
Output :
👁 Image