Chinaunix首页 | 论坛 | 博客
  • 博客访问: 4789785
  • 博文数量: 22
  • 博客积分: 731
  • 博客等级: 军士长
  • 技术积分: 260
  • 用 户 组: 普通用户
  • 注册时间: 2010-11-25 17:53
个人简介

技术宅,开源软件爱好者 虚拟机,编译器,编辑器,MCU IP,数据结构,操作系统,TCP/IP协议

文章分类

全部博文(22)

文章存档

2015年(1)

2014年(2)

2013年(2)

2011年(4)

2010年(13)

分类: LINUX

2010-12-08 17:14:09

 * QApplication::focusWidget ()   [static]

Returns the application widget that has the keyboard input focus, or 0 if no widget in this application has the focus.


 * QApplication::activeWindow ()   [static]

Returns the application top-level window that has the keyboard input focus, or 0 if no application window has the focus. There might be an activeWindow() even if there is nofocusWidget(), for example if no widget in that window accepts key events.


focusWidget返回的是当前活动窗体内聚焦部件的句柄

activeWindow返回的是当前活动窗体整体的句柄

阅读(9068) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~