How to add "new line " to QString ?
Unsolved
C++ Gurus
-
I like to add new line into QString "text" passed to qDebug.
Using text += "\n" or "/n" does not work.text += " ******************"; **text += new line ???** qDebug()<<text;
-
I like to add new line into QString "text" passed to qDebug.
Using text += "\n" or "/n" does not work.text += " ******************"; **text += new line ???** qDebug()<<text;
-
@JonB said in How to add "new line " to QString ?:
qDebug().noquote() << "First line\nSecond line";
Thanks, works as expected.
-
@JonB said in How to add "new line " to QString ?:
qDebug().noquote() << "First line\nSecond line";
Thanks, works as expected.
@AnneRanch
Mark this thread as solved then!