I also see a checkbox in the Keyboard Shortcuts tab.
To this add a simple condition that the checkbox is displayed only on Windows.
Code:
#if !defined(Q_OS_WIN32)
ui.EnableAltGr->setVisible(false);
#endif
I checked on Linux Arch and there is no problem with AltGr.