The UI is as following .
What I want is :
When I press the Enter key ,the label should shows “Enter”
When I press The blank space key ,the label should shows “space”
How to implement this ?
I know I should reimplement the keyPressEvent handler ,but I guss I was got stuck by the focus