In this article we will see how we can check if drag is enabled or not for the whole text i.e including prefix and suffix. When we create a spin box we can’t drag text from it, dragging text means moving the selected text any where according to the cursor, we use
setDragEnabled method with line edit object of spin box to enable the drag.
In order to do this we use dragEnabled method with the line edit object of spin box.
Syntax : line_edit.dragEnabled()
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.