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,果然,还真的发现了有两个地方参数不匹配!修改回来就可以了。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值