P
P
Pavel K2016-02-11 21:07:05
Qt
Pavel K, 2016-02-11 21:07:05

Qt5.5 how to display QString("cyrillic") in qDebug?

In general, for some reason, they killed the ability in qDebug () to display debug information
qDebug()<<QString("Кирилица")
, output \u0123 and so on.
this is how it works:
qDebug()<<"Кирилица";
The fact is that I work with a third-party API and everything just comes to QString there and I would like to see normal messages ... how can I get out?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Pavel K, 2016-02-11
@PavelK

Solution found:
but it smells like a crutch... I'll try to redefine qDebug

M
montredo, 2016-02-12
@montredo

QString string = "Строка1";

qDebug().noquote() << string; // Строка1
qDebug().noquote() << QString("Строка2"); // Строка2
qDebug().noquote() << "Строка3"; // Строка3

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question