PyQt5 QSpinBox – Getting grab gesture
In this article we will see how we can set the grab gesture to the spin box. There various grab gestures available for the spin box : 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 use
grabGesture method with the spin box object.
Syntax : font_metrics.grabGesture(Qt.TapGesture)
Argument : It takes gesture flag as argument
Return : It returns 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