title: How to get function name in function Qt
body: <p>I try to make log when something is wrong, so I want to write the class info and function name like this:</p>
  
  <pre><code>void MainWindowTest::testMethod()
  {
      qDebug()&lt;&lt;QString("ClassName is:%0,Function Name is:%1")
                .arg(this-&gt;metaObject()-&gt;className()).arg("how to get method name");
  }
  </code></pre>
  
  <p>how to do this?</p>