Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Disable highlighting in QDoubleSpinBox
daveq last edited by
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?
tucnak last edited by
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.