Qt 6.11 is out! See what's new in the release
blog
Keyboard Events
-
This post is deleted!
-
This post is deleted!
@PythonShinobi said in Keyboard Events:
How do I fix it?
You are going to have to share at least some of what"it" currently is.
-
This post is deleted!
-
This post is deleted!
-
This post is deleted!
@PythonShinobi said in Keyboard Events:
def keyPressEvent(self, e):
if e.key() == Qt.Key_Space:
self.onKeyClicked('Space')
elif e.key() == Qt.Key_Backspace:
print(0)This does something when a space or backspace is pressed and nothing for any other key event received. By default this event handler accepts every QKeyEvent it receives, so no other processing will occur for key strokes.