displaying QString variable in Application Output
Solved
General and Desktop
-
Hi All,
I just want to know how to get rid of the double quotation mark in the output , if I want to display a QString variable as follows;
QString myWord = " show this" ;
qDebug() <<myWord;This gives me output as "show this" when I am interested to get the output as show this.
Can someone help me with this? -
@Swati777999 said in displaying QString variable in Application Output:
I just want to know how to get rid of the double quotation mark in the output
Don't use qDebug() then.
qDebug is for debug output.
Either use std::cout orQString x{"Some string"}; QTextStream out(stdout); out << x << endl;
-
@Swati777999
ForqDebug()
you can achieve this viaqDebug().noquote() << myWord;