error: invalid operands of types '<unresolved overloaded function type>' and 'const char [42]' to binary 'operator<<'
qDebug<<__FUNCTION__<<arg1;
^
出现这种错误是因为 qDebug后面少加括号!即应该写成:
qDebug()<<__FUNCTION__<<arg1;
另外需要注意的是括号需用英文下的括号,不可用用中文下的括号!