|
1Qter豆
QT新手 要开发一个windows系统的触摸屏程序,想问下关于按钮的触摸事件我重写了QTouchEvent可以吗?
因为目前还没有触摸板供我实验,查资料后发现 QT有这样属性可以设置
QCoreApplication::setAttribute(Qt::AA_SynthesizeMouseForUnhandledTouchEvents,true);
QCoreApplication::setAttribute(Qt::AA_SynthesizeTouchForUnhandledMouseEvents,true);那是不是就是表明即使我写的是onclick事件,在触摸屏程序上也会自动识别成触摸的touch时事件呢?
|
|