Answer the question
In order to leave comments, you need to log in
String representation of shift, ctrl, alt etc keys in pyqt5?
QtGui.QKeySequence(Qt.Key_Shift).toString()
In keyPressEvent, I catch the pressed keys and display their string representation using QKeySequence(code).toString(). Errors occur when this key is pressed shift, control, alt, and so on. Is it possible to somehow represent these keys in text form using their codes?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question