In this article we will see how we can get the tablet tracking property of the QCalendarWidget. If tablet tracking is disabled (the default), the calendar only receives tablet move events when 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 enabled, the calendar receives tablet move events even while hovering in proximity. This is useful for monitoring position as well as the auxiliary properties such as rotation and tilt, and providing feedback in the UI. We can tablet tracking property with the help of
In order to do this we will use
hasTabletTrackingmethod with the QCalendarWidget object.
Syntax : calendar.hasTabletTracking()
Argument : It takes no argument
Return : It return bool
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.