Coding notes
Catch the press event of the keystroke
Overwrite event filter.
//.h file
bool eventFilter(QObject* obj, QEvent* event) override;
//.cpp file
bool MainWindow::eventFilter(QObject* obj, QEvent* event)
{
if (event->type() == QEvent::KeyPress...
shuaisy.hashnode.dev1 min read