Hi Yadd I did try to build Ovito with qwt 6.2 and it works with minor fixes to ovito. Ovito is compiled with Qt6 so you need to change your dependencies to qwt-qt6.
I suggest that you build against the experimental version of libqwt-qt6-dev and I will try to get it into unstable as soon as possible. Regards Gudjon