Set the range to (0,0) in the first place (before calling setValue) and I think you should obtain what you want.