1、打印当前行和文件名
#define FILE_NAME __FILE__ #define LINE_COUNT __LINE__
在需要打印的位置打印信息
qDebug() << FILE_NAME<<LINE_COUNT;