VOOZH about

URL: https://www.geeksforgeeks.org/python/pyqt5-qcalendarwidget-setting-border-to-the-abstract-view/

⇱ PyQt5 QCalendarWidget - Setting Border to the Abstract View - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

PyQt5 QCalendarWidget - Setting Border to the Abstract View

Last Updated : 21 Jun, 2020
In this article we will see how we can set border to the abstract view of the QCalendarWidget. In calendar abstract view is the view that consist the dates inside it, 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. In order to do this we will use setStyleSheet method with the QCalendarWidget object, below is the style sheet code
QCalendarWidget QAbstractItemView
{
border : 4px solid green;
}
Below is the implementation Output : 👁 Image
Comment