PDA

View Full Version : how to stop particular key's action in QLineEdit



rajeshs
4th February 2008, 20:13
Hi All,

I have one QLineEdit in my Dialog , i want to stop backspace key action in my QLineEdit.

If we press backspace it will delete characters , don't want this option in my dialog , how to

do this?

jpn
4th February 2008, 20:36
You could, for example, install an event filter (http://doc.trolltech.com/latest/qobject.html#eventFilter).