QTreeWidgetItem *item = new QTreeWidgetItem; item->setText(0,bt[i]); ui->treeWidget->insertTopLevelItem(1,item);