PDA

View Full Version : how to catch enter press in QLabel?



Morea
26th March 2006, 22:48
When enterig text in a QLabel I wish to make it call a specific slot when ever the user presses ENTER when the cursor is in the QLabel widget.
Is there an easy way of doing this?

jacek
26th March 2006, 22:52
But QLabels are not editable.

Morea
26th March 2006, 22:53
Yes, sorry, I meant QLineEdit, and there is a returnedPressed signal that I can use.
Sorry.