How can I set the focus to an invisible button or the window itself in a QDialog (PyQt5)?
I want to have a QDialog that blocks the interaction with the MainWindow, but where initially no widget has a focus, i. e. no button has a blue border and gets pushed when hitting “Enter”.