title: Member Function Pointer in Qt C++
body: <pre><code>typedef void (classname::*funptr)(int);
  
  void classname::func(int p)
  {
  ...
  }
  
  void classname::someotherfunc()
  {
  ........
  
   funptr ptr;
   ptr= &amp;(classname::func);                 // this is error line 
  
  ...........
  }
  </code></pre>
  
  <p>It gives me the following error:</p>
  
  <pre><code>error C2276: '&amp;' : illegal operation on bound member function expression.
  </code></pre>
  
  <p>Next I tried</p>
  
  <pre><code>ptr= classname::func;
  </code></pre>
  
  <p>which gives this error:</p>
  
  <pre><code>error C3867: 'FaceBinUI::progress_update': function call missing argument list; use '&amp;FaceBinUI::progress_update' to create a pointer to member
  </code></pre>
  
  <p>Please suggest some solution for this problem.</p>