tinyformat: Too many conversion specifiers in format string 解决方案

今天在做一个QT项目的shi'时候,程序突然运行出错,错误提示如下:

018-08-18 16:32:47 GUI: Qt has caught an exception thrown from an event handler. Throwing
exceptions from an event handler is not supported in Qt.
You must not let any exception whatsoever propagate through Qt code.
If that is not possible, in Qt 5 you must at least reimplement
QCoreApplication::notify() and catch all exceptions there.

2018-08-18 16:32:47 

************************
EXCEPTION: St13runtime_error       
tinyformat: Too many conversion specifiers in format string       
xxx in Runaway exception       

导致我的QT一运行就出错!也没有给出更详细的错误想到错误提示,很烦人。

应该不会出现这样的问题,因为我写的地方根本没有用到LogPrint,或者LogPrintf啊!有可能是当前新加的功能,引起了以前的LogPrint、LogPrintf出错导致的。

无奈,只能全局搜索这个项目代码,找出所有的LogPrint,果然,还真的发现了有两个地方参数不匹配!修改回来就可以了。

你可能感兴趣的:(C++)