[Qt-interest] How can I get a specific key pressed into qlineedit ?

John McClurkin jwm at nei.nih.gov
Thu Oct 15 21:54:32 CEST 2009


Mhayk Whandson wrote:
> Hi all,
> 
> I would like to get when the key down is pressed into qlinedit, could
> you help me ?
> 
> best regards,
> 
You can subclass your own QLineEdit class and override the keyPressEvent 
function or you can install an event filter on the QLineEdit object in 
your view. Both procedures are described in the documentation.




More information about the Qt-interest-old mailing list