PyQt5 QCalendarWidget – Grab Gesture Property
In this article we will see how we can set grab gesture to the QCalendarWidget. There various grab gestures available for the calendar like tap gesture, a Tap-And-Hold (Long-Tap) gesture, a Pan gesture, a Pinch gesture, a Swipe gesture and a custom gesture.
In order to do this we will use
grabGesturemethod with the QCalendarWidget object.
Syntax : calendar.grabGesture(Qt.TapGesture)
Argument : It takes gesture flag as argument
Return : It return None
Below is the implementation
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course