Disable highlighting in QDoubleSpinBox
-
I'm using Qt 4.8 with PySide and can't seem to get a QDoubleSpinBox to return to normal, un-highlighted mode after the value has been selected unless I go select something else in the GUI. Is this possible turn off highlighting once the enter key is pressed and the new value is set?
Thanks. -
Hi, ~daveq!
Welcome to Qt Developer Network!
Now QDoubleSpinBox does not send any signals when you press Return - so you can't change it's focus state. But if you want to achieve it you can create you own widget (inherited from QDoubleSpinBox) and implement this behaviour there.
Maybe there is better solution, but I've done it in this way.