Possible Duplicate:
Concatenating two QStrings with an integer
i'm looking forward to create a a string from 3 ints and one c++ stl string in QT, how can i do this? anyone know?, can't find something thats explain this procces?
this is my code were i create the elements in a lsit, but i want to print all elements and theyr properties not only name:
void Window::listMovies(){
ui->listMovies->clear();
vector <Movie> all = ctrl->getAllMovies();
for(int i=0; i <(int) all.size();i++){
QListWidgetItem*item = new QListWidgetItem(
QString::fromStdString(all[i].getName()),ui->listMovies);
item->setData(Qt::UserRole,QVariant::fromValue(all[i].getID()));
Movie objects have 1 string and 3 ints varaibles.