Hello everyone,

I am working with QListWidget and I am supposed to pass a string to my ListWidget using addItem.


I have a line ui->listwidget->addItem(QString::fromstdString(s2));

where as S2 consists of some values like 1 , 2 , 3 ........

Now I want my output on the screen as


The Output data:: 1
The Output data:: 2
........



How can I pass the string "The output data" to ListWidget.


It would be great help if someone can help me out.

Thank you