0

How to show Qtreewidget item as in editable mode? means when a data of that particular column will show it should be look like it can be edit. Means it should be taken data as input.

QTreeWidgetItem *item=NULL;
 item->setBackgroundColor(0,color);
    item->setIcon(0,coloricon);
    item->setText(0,QString(sample->sampleName.c_str()));
    item->setData(0,Qt::UserRole,QVariant::fromValue(samples[i]));
**//I want to show this particular column as in editable mode** 
    item->setText(1,QString(sample->getSetName().c_str()));

    item->setText(2,QString::number(sample->getNormalizationConstant(),'f',2));

0 Answers0