当前位置: 首页 > news >正文

服装网站建设公司千锋教育官方网

服装网站建设公司,千锋教育官方网,网站建设_app开发,江西智能网站建设哪里有依据来源&#xff1a;https://doc.qt.io/qt-5/qml-qtquick-mouseevent.html 具体是在event事件或者mouse系列事件中捕获到鼠标事件后&#xff0c;用如下代码判断鼠标事件是否由触摸事件转换而来的 if(mouseEvent->source()Qt::MouseEventSynthesizedBySystem){qDebug()<&…

依据来源:https://doc.qt.io/qt-5/qml-qtquick-mouseevent.html

具体是在event事件或者mouse系列事件中捕获到鼠标事件后,用如下代码判断鼠标事件是否由触摸事件转换而来的

    if(mouseEvent->source()==Qt::MouseEventSynthesizedBySystem){qDebug()<<"是由触摸事件转换而来的";}

通过该条件的一律返回,剩下的就是不由触摸事件生成的鼠标事件,由此做到鼠标与触摸事件的分离,使得触摸事件引起的鼠标事件不再干扰判断
更多信息从依据来源中抽取出来后如下,翻译由网易翻译完成。

此属性保存鼠标事件的源。

鼠标事件源可用于区分真正的鼠标事件和人工鼠标事件。当使用其他指向设备(如触摸屏和图形平板)时,如果应用程序没有使用实际的触摸或平板事件,则鼠标事件可能由操作系统或Qt本身合成。

取值可以是:
Qt.MouseEventNotSynthesized -最常见的值。在这些信息可用的平台上,该值表示该事件代表来自系统的真正鼠标事件。
Qt.MouseEventSynthesizedBySystem -指示鼠标事件是由平台从触摸或平板事件合成的。

Qt.MouseEventSynthesizedByQt -指示鼠标事件是由Qt从未处理的触摸或平板事件合成的。

Qt.MouseEventSynthesizedByApplication-指示鼠标事件是由应用程序合成的。这允许将应用程序生成的鼠标事件与来自系统或由Qt合成的鼠标事件区分开来。

这个属性是在Qt 5.7中引入的。

This property holds the source of the mouse event.

The mouse event source can be used to distinguish between genuine and
artificial mouse events. When using other pointing devices such as
touchscreens and graphics tablets, if the application does not make
use of the actual touch or tablet events, mouse events may be
synthesized by the operating system or by Qt itself.

The value can be one of:

Qt.MouseEventNotSynthesized - The most common value. On platforms
where such information is available, this value indicates that the
event represents a genuine mouse event from the system.
Qt.MouseEventSynthesizedBySystem - Indicates that the mouse event was
synthesized from a touch or tablet event by the platform.
Qt.MouseEventSynthesizedByQt - Indicates that the mouse event was
synthesized from an unhandled touch or tablet event by Qt.
Qt.MouseEventSynthesizedByApplication - Indicates that the mouse event
was synthesized by the application. This allows distinguishing
application-generated mouse events from the ones that are coming from
the system or are synthesized by Qt.

This property was introduced in Qt 5.7.

http://www.mmbaike.com/news/24683.html

相关文章:

  • 做物流的网站都有什么作用网站推广怎么做有效果
  • 网站seo公司苏州seo网站管理
  • 网站建设共享ip关键词热度分析工具
  • 河南 网站备案百度怎么发布自己的广告
  • 做微信小程序哪个网站好搜索引擎关键词竞价排名
  • 中山网站建设文化如何qq排名优化网站
  • 南宁门户网站建设网站推广系统方案
  • asp动态网站开发答案推广软件是什么工作
  • 手机免费建设网站制作搜索引擎优化排名
  • flash网站做seo优化好不好网络广告的特点
  • 用vs做网站原型44555pd永久四色端口
  • 湖北正规网站建设检修新媒体营销推广方案
  • 网站的外链接数域名注册信息查询
  • 做网站好吗百度网站大全首页
  • 录像网站怎么做互联网营销怎么赚钱
  • 网站底部固定广告代码新站如何快速收录
  • 网站电子签名怎么做做推广的公司一般都叫什么
  • mac服务器 做网站fifa最新世界排名
  • 任何用c语言做网站网站搜索优化
  • 微信公众号商城网站开发竞价外包代运营公司
  • 电子商务网站建设方案书的总结上海百度推广优化排名
  • 手机输入网址怎么输入标题关键词优化报价
  • 做PPT哪个网站的素材多点蜗牛精灵seo
  • 网站制作平台能赚钱吗十大免费最亏的免费app
  • 郑州网站开发定制网站seo课程
  • 门户网站开发要多久新网站排名优化怎么做
  • 长沙百度网站制作seo基础教程
  • 制作充值网站品牌营销经典案例
  • 网站开发下载哪个绍兴seo计费管理
  • 长春做网站wang百度搜索风云榜小说排行榜