After every second I want to get the cursor position. But I dont know how to obtain the value returned from a slot???
Please help.
Thanks in advance!

Here is my code:

Qt Code:
  1. QTimer *mtimer = new QTimer();
  2.  
  3. connect (mtimer, SIGNAL(timeout()), this, SLOT (get_cursor_position()));
  4.  
  5. QPoint MainWindow::get_cursor_position()
  6. {
  7. q = QCursor::pos();
  8. return q;
  9. }
To copy to clipboard, switch view to plain text mode