why are you making your own plotting app? there is already qwt.

btw, it will be your maths/mapping that is making something not quite match. Trying to fudge it with a Qt transform will just move the error somewhere else.