#pragma once #include #include /** * This class provides a fix/workaround for UI becoming unresponsive in certain situations when using multiple touch screens at the same time. * The workaround lies in unregistering touch points that the Qt itself fails to unregister. */ class MultiTouchScreenFix : public QObject { Q_OBJECT public: static void install(QWidget *wgt); protected: virtual bool eventFilter(QObject *o, QEvent *e) override; private: MultiTouchScreenFix(QWidget *wgt); private: QHash leftoverTouchPoints_; };