[Qt-interest] Track the mouse movements outside my QMainWindow

Stephen Chu stephen at ju-ju.com
Wed Nov 11 15:34:10 CET 2009


You can install an event filter on gApp which is the sole instance of a 
QApplication:

   qApp->installEventFilter(myMouseWatcher);

In article 
<4BA5307AF084A04E83875ECC173BC77B9DD3829961 at EXCHANGE.persistent.co.in>,
 Rahulkumar Tibdewal <rahulkumar_tibdewal at persistent.co.in> wrote:

> Hello All,
> 
> I need to track the mouse movements outside my QMainWindow.
> Is there a way I can track the mouse moments outside my main window or 
> widget.
> 
> Thanks and Regards,
> Rahul

-- 
Stephen Chu



More information about the Qt-interest-old mailing list