I'm writing a plasmoid in Python with a WebView. The WebView will reload the page automatically by a QTimer. But I don't want it to reload itself when I'm viewing or typing in the plasmoid, because it will be very annoying. So I have to know whether the plasmoid has keyboard focus.<br>
<br>I tried hasFocus() of both Applet and WebView, but they always return False.<br>I also tried to override focusInEvent(), but it's never triggered.<br><br>I'm using KDE 4.5.5.<br><br>Thanks.<br clear="all"><br>
-- <br>Best wishes<br>ZHANG Kun<br>