So I have this little chat program. Problem lies when display messages onto the output box. The output box is a QTextEdit and so is the input. In order to place messages sent and received onto output box I use the append function.. but if I send text with new line characters the new line character's dont appear and all the the text appears in a single line. if I qDebug() the string I am going to append right before appending I see the correct text format.
Example error
Dog
Cat race
I will get in the output box Dog cat race
Any help is great
Bookmarks