QString result;
result.sprintf("ATTENTION! NO.%d function_____Linenumber %d,the destination of the function \" sprintf\" does not exist!\n", i, j);
ui.resultbrowser->insertPlainText(result);
Qt | QString输出到textbrowser首先我们看一下怎样将变量输出到textbrowser。对于 int、char等c类型变量,将其连接在字符串中输出即可。示例代码如下:QString reslut;result.sprintf("ATTENTION! NO.%d function_____Linenumber %d,the destination of the function \" sprintf\" does not exist!\n", i, j);ui.resultb