QSpinBox makes its contents selected (highlighted) upon using up/down buttons. Is there any way to disable this?
Is there any way to clear selection, other than use my own subclass of QSpinBox to access the underlying QLineEdit?
QSpinBox makes its contents selected (highlighted) upon using up/down buttons. Is there any way
Share
There’s no way to directly disable it, but you can do a bit of a hack:
I recommend connecting to this using a queued connection, like this:
This will ensure that the slot is called after the line edit is highlighted.