Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Connecting the push of a button with a QPushButton?
Pedro_Monteiro last edited by Pedro_Monteiro
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.
Ratzz last edited by Ratzz
connect(shortcut, SIGNAL(activated()), this, SLOT(on_pushButton_Up_clicked()));
Pedro_Monteiro last edited by
@Ratzz Thanks, you saved me.