Update mainwindow.cpp

qwt6 porting