Radio haloes from simulations and hadronic models - II. The scaling relations of radio haloes