Hello,
I am trying to get the log when a mouse is moved outside a QT app window.
I have a QTGraphicsScene which zooms on mouse wheel.

Basically I am drawing a line from 1 point to other by left click using QPainter till the point on the scene I release on mouse down.
The problem happens when I zoom the scene and start drawing the line. But when the mouse cursor goes outside the app window
the line is drawn and no further detection of mouse happens even if I return back to the scene.

So I tried this :
void ClassName::mouseMoveEvent(QGraphicsSceneMouseEvent *event){

Qt Code:
  1. if (event->type() == QEvent::FocusOut) {
  2. cout<<"----------///FocusOut -----------------------"<<endl;
  3. }
  4. }
To copy to clipboard, switch view to plain text mode 


I just need to know is their a way to detect mouse movements outside a QT app window.

Thankx in advance!!