I get the following error when trying to connect two classes together:
Qt Code:
  1. qapp.cpp: In static member function 'static bool QApp::eventFilter(void*)':
  2. qapp.cpp:32: error: cannot call member function 'void QApp::mouseCoord(int, int, int, int, int)' without object
To copy to clipboard, switch view to plain text mode 

main.cpp:
Qt Code:
  1. int main(int argc, char *argv[])
  2. {
  3. QApp a(argc, argv);
  4. Widget w;
  5. w.show();
  6.  
  7. QObject::connect(&a,SIGNAL(mouseCoords(int, int, int, int, int)),
  8. &w,SLOT(mouseCoords(int, int, int, int, int)));
  9.  
  10. return a.exec();
  11. }
To copy to clipboard, switch view to plain text mode 

qapp.cpp:
Qt Code:
  1. emit mouseCoord(get_raw_mouse_x_delta(i), get_raw_mouse_y_delta(i), // this is line 32...
  2. is_raw_mouse_button_pressed(i, 0), is_raw_mouse_button_pressed(i, 1), is_raw_mouse_button_pressed(i, 2));
To copy to clipboard, switch view to plain text mode 

I have searched the forum and found several issues quite like mine, but not enough to help me out.