How to fire mouse click event on clicking in year option for QCalendarWidget.
onclick of year(2012), i want to print some text using pyqt5 Can anyone help. Thanks in advance/
How to fire mouse click event on clicking in year option for QCalendarWidget.
onclick of year(2012), i want to print some text using pyqt5 Can anyone help. Thanks in advance/
Copyright © 2021 Jogjafile Inc.

The first thing is to obtain the QSpinBox that shows the year using findChildren, then it is to detect the mouse event but as this solution points out it is not possible so a workaround is to detect the focus event: