1.头文件,重写: bool winEvent(MSG *msg, long *result); 2.注册热键: ::RegisterHotKey(this->winId(), 100,0, VK_F2); 3.处理Windows消息: