The attached code works fine on Centos 5 with Qt-4.7.4 and qwt-6.1.2. However, when I run on Centos 7 with Qt-5.11 and qwt-6.1.3, I get much different results. The std::cout where I print the x and y values of p_mouse_event->pos() look reasonable on Centos 5, but I get 0 for both x and y on Centos 7.
Bookmarks