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

北京企业免费建站湖北网站设计流程

北京企业免费建站,湖北网站设计流程,建立网站 域名 服务器吗,阿里虚拟主机怎么做两个网站依据来源&#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.yayakq.cn/news/565927/

相关文章:

  • 精准扶贫电商网站建设计划书企业邮箱和个人邮箱的区别
  • 手机 网站服务器wordpress多站点 缺点
  • 制定网站建设规划书关于做膳食的一些网站
  • 手机版网站案例小程序源码php
  • 庐山网站建设深圳市年检在哪个网站做
  • 河南企业网站推广wordpress ssl插件
  • 移动网站建设推广wap网站登陆系统
  • 做的网站错位怎么办承德网站建设电话
  • 网站后台上传附件网站有死链怎么办
  • 中国工业设计网站水源logo设计制作网
  • 网站的按钮怎么做的页面设计包括排版嘛
  • 网站建设需要用到的软件开发购物中心设计
  • 上海最好的网站设计公司关于做网站
  • 汕头网站推广费用上海建筑设计研究院有限公司
  • 喀什的网站怎么做视频剪辑培训比较有名的学校
  • 网站建设的需求是什么出售东西的网站怎么做
  • 万象园网站建设与开发南宁网站开发
  • 天津做网站外包公司有哪些电子商城商务平台
  • 网站开发过程 文档凡科建站快车代理登录
  • 微商城网站建设好么生态文明建设
  • ERP开发 网站开发关键字排名查询工具
  • 怎样学习做网站的编程怎么做展示网站
  • 自己做的音乐网站侵权问题什么系统做购物网站好
  • 网站制作可能出现的问题网络营销有哪些功能?
  • 沈阳网站制作公司和服务器在线视频网站开发
  • seo优化在线诊断西安百度关键词优化排名
  • 苏州网站制作公司网站建设怎么上传数据
  • 主页值得是网站的主要内容所在页soso网站提交入口
  • 浙江直播网站建设网站开发建设推荐用书
  • 青海省住房和城乡建设局网站首页网站建设新闻中心