I want to use a class member as a handler for Qt output. Following code fails to compile; I'll appreciate a helping hand

Qt Code:
  1. void test::debugOut(QtMsgType type, const QMessageLogContext &context, const QString &msg)
  2. {
  3.  
  4. }
  5.  
  6. void test::onConnect()
  7. {
  8. auto fp = std::bind (&test::debugOut, *this, std::placeholders::_1);
  9. qInstallMessageHandler(fp);
  10. }
To copy to clipboard, switch view to plain text mode