I have a number of spinboxes in my PySide project and I would like to change the behavior so the so user is required to click in the field to change the value and then press the enter key. I would like to disable scroll wheel behavior for the spinboxes. I have tried setting the focus policy, but it is not taking effect.
def light_label_event(self,text,checked):
print("this is the pressed button's label", text)
def populate_lights(self):
for light in self.lights:
light_label = QtWidgets.QSpinBox()
light_label.setFocusPolicy(QtCore.Qt.StrongFocus)