There is no solution - when the width/height ratio of the canvas geometry changes you have to adjust the zoomed view or you lose the aspect ratio.
QwtPlotRescaler offers some standard strategies for adjusting the scales according to the canvas geometry.
But I guess you already knew this - so what exactly is your question now ( "can't get it to work" might be anything ) ?
Uwe
Bookmarks