Added Qwt6 compatibility