擅长:python、mysql、java
<p>它不工作,因为Qt绕过windows消息循环pyHook依赖于消息循环来运行。你知道吗</p>
<blockquote>
<p>Modern graphical interface frameworks, such as Windows Forms, Windows
Presentation Foundation, MFC, Delphi, <strong>Qt</strong> and others do not
typically require applications to directly access the Windows message
loop, but instead automatically route events such as key presses and
mouse clicks to their appropriate handlers as defined within the
framework.</p>
</blockquote>
<p>从<a href="http://en.wikipedia.org/wiki/Message_loop_in_Microsoft_Windows" rel="nofollow">Message Loop in MS Windows</a></p>