Hi,
I am using QT-5.
I have used the below code:
This always results in false.Qt Code:
if (str1==str) ui->textEdit_2->setText("true"); else ui->textEdit_2->setText("false");To copy to clipboard, switch view to plain text mode
Why is it like this?
Internally QString should be in same format,its character pointer which have different format,for which we use fromLatin1 or fromUtf8.
Bookmarks