How to Program custom Keyboard Shortcuts

Try this: new QShortcut(QKeySequence(Qt::CTRL + Qt::Key_Q), this, SLOT(close())); You can create it in the contructor of your form. This allows to avoid polluting your class with a pointer to access the shortcut. You may still want to add a pointer to the shortcut if you want to access it later on. The shortcut will be … Read more

Back button of Google Chrome after clicking a hyperlink whose target is on the same PDF document

AFAIK there is no way to do it with the standard Chrome PDF Viewer. Take a look at their support page https://support.google.com/chrome/answer/1060734. You could try requesting this feature but keep in mind that the PDF viewer is part of Chrome, not Chromium.