PyQt5 QSpinBox – Setting tablet tracking
In this article we will see how we can set tablet tracking to the spin box. By default tablet tracking is in disabled state although we can change this any time. If tablet tracking is switched off, tablet move events only occur if the stylus is in contact with the tablet, or at least one stylus button is pressed, while the stylus is being moved. If tablet tracking is switched on, tablet move events occur even while the stylus is hovering in proximity of the tablet, with no buttons pressed.
In order to do this we use
setTabletTracking method with the spin box object.
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
Syntax : spin_box.setTabletTracking(True)
Argument : It takes bool as argument
Return : It returns None
Below is the implementation