Hello, how can I connect the push of a keyboard key (up, down left, right) with 4 different QPushButton?
I've tried the QShortcut class, but I did not find examples that can give me a good explanation.
You can use QShortcut with QKeySequence with key enum.
and connect something like this
connect(shortcut, SIGNAL(activated()), this, SLOT(on_pushButton_Up_clicked()));
--Alles ist gut.
@Ratzz Thanks, you saved me.