VOOZH about

URL: https://www.geeksforgeeks.org/python/pyqt5-qcalendarwidget-setting-border/

⇱ PyQt5 QCalendarWidget - Setting Border - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

PyQt5 QCalendarWidget - Setting Border

Last Updated : 21 Jun, 2020
In this article we will see how we can set border to the QCalendarWidget, setting border to QCalendarWidget is not like setting border to the other widgets, calendar is widget which has many child i.e component we can set border to independent component as well. Below is how the calendar with border will look like 👁 Image
In order to do this we will use setStyleSheet method with the QCalendarWidget object, below is the style sheet code
border : 3px solid black;
Note : This will remove all the previous style sheet of the calendar Below is the implementation Output :
Comment