Would this kind of mapping be useful for anything else? Should it be in a QHash somewhere?

Doesn't need to be done immediately, of course.