Modelling the quasi-stellar object luminosity and spatial clustering at low redshifts