PDA

View Full Version : selectAll in QSpinBox when clicked



hassinoss
12th November 2014, 11:33
Hi all,

I Wondered if there is a method to select the text in the spinBox when we click in line edit in the spinBox , i tried to overlide mousePressEvent but it works just when we click in the buttons up an down.
Have any body an idea to do this ?

anda_skoa
12th November 2014, 18:28
If you subclass QSpinBox you can also set your own QLineEdit subclass or install an event filter on the existing one.

Cheers,
_