In this article we will see how we can assign a description to the QDateEdit. Description property holds the date edit’s description as seen by assistive technologies. The accessible description of a date edit should convey what date edit does. While the accessible name should be a short and concise string (e.g. Office Date), the description should give more context, such as Saves the selected date.
In order to do this we use
setAccessibleDescription method with the QDateEdit object
Syntax : date.setAccessibleDescription(text)
Argument : It takes string 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.