[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 11:28:54 CEST 2009
On Thu, 10 Sep 2009 11:14:32 +0200, Giacomo wrote:
> On Thursday 10 September 2009 10:32:04 R. Reucher wrote:
>> 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.
>
> No because I want the editor to appear only when the user clicks on an
> Item at a certain column, I do not want it persistent.
Yeah, then just open the "persistent" editor on any edit-trigger and
close it according to the item delegate's way of handling input (i.e. of
pressing enter).
The answer stays the same. There may be easier ways to do it that I'm not
aware of, but that's the way it works for me.
--
René Reucher
rene.reucher at batcom-it.net
http://www.batcom-it.net/
More information about the Qt-interest-old
mailing list