QApplication向widget 传递的事件循序
2010-04-22 12:24
120 查看
widget:
bool event(QEvent *e)
{
qDebug()<<e->type();
}
state :(1) begining:
type name func
203 QEvent::WinIdChange The window system identifer for this native widget has changed
75 QEvent::Polish(修正) The widget is polished
13 QEvent::Move Widget's position changed (QMoveEvent).
14 QEvent::Resize Widget's size changed (QResizeEvent).
17 QEvent::Show Widget was shown on screen (QShowEvent).
24 QEvent::WindowActivate Window was activated.
99 QEvent::ActivationChange A widget's top-level window activation state has changed.
26 QEvent::ShowToParent A child widget has been shown.
74 QEvent::PolishRequest The widget should be polished.
77 QEvent::UpdateRequest The widget should be update
12 QEvent::ApplicationActivated(meybe:doc has no type of 12) This enum has been deprecated. Use ApplicationActivate instead.
state:(2) window missing forcs
25 QEvent::WindowDeactivate(解散) Window was deactivated.
99 QEvent::ActivationChange A widget's top-level window activation state has changed
state:(3) ccome back
24 QEvent::WindowActivate Window was activated
99 QEvent::ActivationChange A widget's top-level window activation state has changed
COMING SOON: about key event ,mouse event, doubledk.. comtext ....................
bool event(QEvent *e)
{
qDebug()<<e->type();
}
state :(1) begining:
type name func
203 QEvent::WinIdChange The window system identifer for this native widget has changed
75 QEvent::Polish(修正) The widget is polished
13 QEvent::Move Widget's position changed (QMoveEvent).
14 QEvent::Resize Widget's size changed (QResizeEvent).
17 QEvent::Show Widget was shown on screen (QShowEvent).
24 QEvent::WindowActivate Window was activated.
99 QEvent::ActivationChange A widget's top-level window activation state has changed.
26 QEvent::ShowToParent A child widget has been shown.
74 QEvent::PolishRequest The widget should be polished.
77 QEvent::UpdateRequest The widget should be update
12 QEvent::ApplicationActivated(meybe:doc has no type of 12) This enum has been deprecated. Use ApplicationActivate instead.
state:(2) window missing forcs
25 QEvent::WindowDeactivate(解散) Window was deactivated.
99 QEvent::ActivationChange A widget's top-level window activation state has changed
state:(3) ccome back
24 QEvent::WindowActivate Window was activated
99 QEvent::ActivationChange A widget's top-level window activation state has changed
COMING SOON: about key event ,mouse event, doubledk.. comtext ....................
相关文章推荐
- Qt事件传递机制(QApplication::installEventFilter的作用)
- Qt中父子widget的事件传递
- QT的父子Widget之间消息的传递(如果子类没有accept或ignore该事件,则该事件会被传递给其父亲——Qlabel与QPushButton的处理就不一样)
- Qt Widget重叠放置和兄弟Widget的事件传递
- *QT QGraphicsScene、QGraphicsItem、QGraphicsProxyWidget、QWidget间的事件传递
- Qt中父子widget的事件传递
- QT QGraphicsScene、QGraphicsItem、QGraphicsProxyWidget、QWidget间的事件传递
- Qt中父子widget的事件传递
- 【转载两篇关于android按键事件传递的文章,流程非常完整】Android按键事件传递流程(二)
- (六十)触摸事件的传递和响应者链条、手势处理
- 自定义控件(视图)28期笔记10:自定义视图之Touch事件传递机制("瀑布流"的案例)
- Android事件传递
- android view事件传递总结
- 事件传递
- 传递UIScrollView的滑动事件到其子视图中
- Android Touch事件传递机制
- Android Touch事件传递机制解析
- Android: 详解触摸事件如何传递
- 102_widget的点击事件
- (转)QT事件传递与事件过滤器