qt, qt5: cleanup hacky, unused, misnamed options.

Closes #22321.
Closes #22332.