I used:
Qt Code:
  1. InverterCheck::InverterCheck(QWidget* parent) : QWidget(parent)
  2. {
  3. setupUi(this);
  4. treeWidget->setColumnCount(4);
  5. QList<QTreeWidgetItem *> items;
  6.  
  7.  
  8. for (int i = 0; i < 10; ++i){
  9. QTreeWidgetItem *it = new QTreeWidgetItem(treeWidget);
  10. it->setIcon(3,QIcon(":/images/ledspento.png"));
  11.  
  12. it->setText(0,tr("Voc(Tmin)"));
  13. it->setFlags(Qt::ItemIsEnabled | Qt::ItemIsSelectable);
  14. items.append(it);
  15. }
  16. treeWidget->insertTopLevelItems(0, items);
  17. }
To copy to clipboard, switch view to plain text mode 
in order to have an Icon in the forth column.
But the Icon will not be resized to the correct size. Do I have to resize "by hand" the icon's size, or QIcon can do it for me?
G