In this article we will see how we can check if the accept of drops in spin box is enabled or not, we use
setAcceptDrops method to enable the accept drop. In order to check if the spin box’s accept drops property is enabled or not we use
In order to do this we use acceptDrops method with the spin box.
Syntax : line_edit.acceptDrops()
Argument : It takes no argument
Return: It returns 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. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course