PyQt5 QDoubleSpinBox – Making it Non Editable
In this article we will see how we can make the QDoubleSpinBox non editable. By default when we create a double spin box it is editable i.e its value can be changed by user any time, although by making it non editable its value can’t be changed, user can only view the value.
In order to do this we will use
setReadOnlymethod with the double spin box object.
Syntax : dd_spin.setReadOnly(True)
Argument : It takes bool 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. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course