I have a MainWindow class with ther .h and cpp files.
Compiler tells me :

argument of type 'void (MainWindow:(long int)' does not match 'void (*)(long int)'

I have tried all combinations, with class prefix, without it,.... without success.

Qt Code:
  1. void MainWindow::update1(long value){ }
  2.  
  3. void MainWindow::on_pushButton_6_clicked()
  4. {
  5. void (*pFunc)(long);
  6. pFunc = update1; // here is where I have the error.
  7.  
  8. }
To copy to clipboard, switch view to plain text mode 


Any help ? Thanks