문제

I want to write a QString that includes two QProcess enums into a QTextBrowser. Therefore I used in one of my methods:

QString Text = "Error! Exit-Status: " + Status + QString(" Error-Code: ") + Prozess.error() + " File not created!"

Dialog.mytextBrowser -> setText(Text);

This also works, but the value of the QProcess::ExitStatus "Status" and the value of Prozess.error() are missing. What do I have to change to get the values into the QTextBrowser? greetings

도움이 되었습니까?

해결책

Ok, problem was solved by QString Text = QString( "Error! Exit-Status: %1 Error-Code: %2 File not created!" ).arg( Status ).arg(Prozess.error()); . Anyway, thx for the support.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top