我将 QwtPlot 子类化,如下所示:
class MyQwtPlot:public QwtPlot
{
public:
private:
protected:
bool event(QEvent *event);
}
但是该事件不接受触摸和多点触摸事件。谁能告诉我如何让它接受触摸事件?非常感谢!
最佳答案
Qwt 背后的人写道 this statement .
当你的驱动程序支持多点触控时,我认为 QTouchEvent类会帮助你。 特别注意以下几点:
To receive touch events, widgets have to have the Qt::WA_AcceptTouchEvents attribute set
关于c++ - 如何让Qwt接受触摸和多点触摸事件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15170172/