qtgui: fixes issue of setting min/max when using qwt < 6.1.0.