displaying QString variable in Application Output
-
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? -
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; -
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
ForqDebug()you can achieve this viaqDebug().noquote() << myWord; -
@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;@jsulm Thanks. :)
-
@Swati777999
ForqDebug()you can achieve this viaqDebug().noquote() << myWord;@JonB It worked for me too. Thanks.