Let us say I used QR to generate altariaite in x and y
Since that item's effect is not in the game's coding, the item would have no effect at all. You could not mega evolve Altaria in X or Y because Altaria's mega stone didn't exist.