i have to load certain image as icon in Qlistwidget but everytime to perform this operation i have to write
Qt Code:
  1. ui->listWidget_2->addItem(new QListWidgetItem(QIcon(":/new/Myresource/Tulips.jpg"),"Tulips"));
To copy to clipboard, switch view to plain text mode 
can i perform this opeartion dynamically ?? so that everytime i dont need to write same code for loading all images.