Key up pressed event
Solved
General and Desktop
-
So do it ?
Override keyReleaseEvent
void MyWidget::keyReleaseEvent(QKeyEvent *event)
{
// do here what you want
}Edit:
what is "up" key?`
U can also trigger your code from keyPressEvent if the up part is not referring to releasing a key but
the arrow key pointing up. -
Hi! You can find some example code here: https://forum.qt.io/topic/74169
-
@ARASHz4 said in Key up pressed event:
how about multi key pressed like Ctrl+O ?
All you need is contained in the QKeyEvent object you get when you receive the event.
I suggest you read some starter tutorials for Qt first, since such things are very essential to even start building a GUI application.