[Qt-interest] Item delegate on column 1 of a tree widget, but would like column 0 not editable
R. Reucher
rene.reucher at batcom-it.net
Thu Sep 10 10:32:04 CEST 2009
On Thu, 10 Sep 2009 09:53:57 +0200, Giacomo wrote:
> Good morning to all!
>
> I have set an ItemDelegate on column 1 of a QTreeWidget. I had to set
> every widget item editable to have the column 1 with the widget I want.
> Anyway, I would like to display on column 0 a fixed text, not editable.
> Is there a straight way to do this.
What?
You have to call QTreeWidget::openPersistentEditor(QTreeWidgetItem *,
int) on every QTreeWidgetItem that should be editable in the specified
column. The other columns (of that item) do not need to be editable.
HTH, René
--
René Reucher
rene.reucher at batcom-it.net
http://www.batcom-it.net/
What is mind? No matter.
What is matter? Never mind.
-- Thomas Hewitt Key, 1799-1875
More information about the Qt-interest-old
mailing list