Now I use QTextEdit and add new messages to the buffer and just show the entire buffer after receiving each message. Isn't it expensive? How else can you implement?

    1 answer 1

    A good approach is to use a simple queue (FIFO). Out - goes to the cache. How to organize a cache is another matter. Well, if the whole story will not hang in the memory. And from the queue you form TextEdit.