Pyqt Calendar With Only Year/month View
In Qt Designer, the QDateTimeEdit has the option for a calendar view. By setting the display format, I am able to only display month/year. However, when the user clicks on the vie
Solution 1:
I suggest you to use the QDateEdit widget, setting its displayFormat attribute to MM/yyyy and currentSection to QDateTimeEdit.MonthSection for instance.
Note that you can ask this widget to display a calendar when editing the value (self.setCalendarPopup(True)). By definition the calendar will display days, months and years.
Post a Comment for "Pyqt Calendar With Only Year/month View"