There is QListWidget. If I add an item with the text like "Line1\nLine2" I get an item containing a one string.
How can I make this item containing two strings?
2 Answers
You could add two lines to QListWidget in two way:
First:
listWidget->addItem(tr("Line1\nLine2")); or
new QListWidgetItem(tr("Line4\nLine5"), listWidget); and that should work as per common testing.
Second, and the better way is to add multiple items using addItems() with QStringList
QStringList items; items << "Line1"; items << "Line2"; listWidget->addItems(items); 

\n\rsome_list_widget.addItem(QString("Line1\nLine2"));and I get what you want: imgur.com/a/TFv5a , You could give more detail.