Making only one column of a QTreeWidgetItem editable
You can make only certain columns in a QTreeWidget editable using a workaround: 1) Set the editTriggers property of the QTreeWidget to NoEditTriggers 2) On inserting items, set the Qt:ItemIsEditable flag of the QTreeWidgetItem object 3) Connect the following slot to the “itemDoubleClicked” signal of the QTreeWidget object: void MainWindow::onTreeWidgetItemDoubleClicked(QTreeWidgetItem * item, int column) { … Read more