X and Y
Gym Leaders
No gym leaders in Kalos use Mega Evolution throughout the story (or during rematches) except for Korrina, who uses Mega Lucario in one special battle that is unrelated to her gym battle.
Elite 4
No Elite 4 members in Kalos use Mega Evolution throughout the story or during rematches.
Champion
- Champion Diantha uses Mega Gardevoir.
Rivals
- Serena/Calem use Mega Absol
Evil Team
- Lysandre uses Mega Gyarados in his 3rd and 4th battle
Omega Ruby and Alpha Sapphire
Gym Leaders
No gym leaders in ORAS use Mega Evolution throughout the story or during rematches.
Elite 4
During the main story, the Hoenn Elite 4 does not use Mega Evolution. However, during their rematches:
- Sydney uses Mega Absol
- Glacia uses Mega Glalie
- Phoebe uses Mega Sableye
- Drake uses Mega Salamence
Champion
- Champion Steven Stone uses Mega Metagross
Evil Team
- Maxie uses Mega Camerupt
- Archie uses Mega Sharpedo
Rivals
- May/Brendan use either Mega Swampert/Sceptile/Blaziken
- Wally uses Mega Gallade
Others
- Zinnia uses Mega Salamence
Sun and Moon
No battles outside of the post-game include Mega Evolution. However, you can look at this link for trainers that use Mega Evolution in the Battle Tree and other areas.
Ultra Sun and Ultra Moon
No battles outside of the post-game include Mega Evolution. I believe the same link above covers the same trainers who use Mega Evolution in the Battle Tree and other post-game areas.