博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
QEvent Class Reference
阅读量:6248 次
发布时间:2019-06-22

本文共 1162 字,大约阅读时间需要 3 分钟。

Detailed Description

The QEvent class is the base class of all event classes. Event objects contain event parameters.

Qt's main event loop (()) fetches native window system events from the event queue, translates them into QEvents, and sends the translated events to s.

In general, events come from the underlying window system (() returns true), but it is also possible to manually send events using() and () (() returns false).

 receive events by having their () function called. The function can be reimplemented in subclasses to customize event handling and add additional event types; () is a notable example. By default, events are dispatched to event handlers like () and(). () allows an object to intercept events destined for another object.

The basic QEvent contains only an event type parameter and an "accept" flag. The accept flag set with (), and cleared with (). It is set by default, but don't rely on this as subclasses may choose to clear it in their constructor.

Subclasses of QEvent contain additional parameters that describe the particular event.

See also (), (), (), (), (), and().

 

 

如果是外部的事件(a system event),就是 (自发的)。

accept默认是true的。但子类可能改写。

转载地址:http://smria.baihongyu.com/

你可能感兴趣的文章
Mars说光场(3)— 光场采集
查看>>
Django 文件下载功能
查看>>
Tomcat配置多个域名绑定到不同项目
查看>>
C# MemoryCache GCHandle
查看>>
电子书下载:Building Web Applications with SVG
查看>>
Top 10 Universities for Artificial Intelligence
查看>>
ArcGIS案例学习笔记-聚类点的空间统计特征
查看>>
xBIM 插入复制功能
查看>>
css 温故而知新 select-option 文字方向居右
查看>>
js中的with语句
查看>>
Android 手机卫士--签名文件说明&包名说明
查看>>
Angular2入门:TypeScript的类型 - 对象解构
查看>>
javarebel热部署 (转)
查看>>
今天折腾这么一个正则
查看>>
墨西哥旅游趣闻
查看>>
深入理解JavaScript系列(41):设计模式之模板方法
查看>>
[Flexbox] Using flex-direction to layout content horizontally and vertically
查看>>
web.xml文件的 xsd引用(或dtd引用)学习
查看>>
c#用run32dll打开系统dll(如系统图片查看器,并置最顶层)
查看>>
C#4.0中var和dynamic的区别
查看>>