Qt-interest Archive, April 2008
QTreeWidget and edit question
Message 1 in thread
Hi to all
I would like to AVOID this situation in a QTreeWidget:
1. I am editing a QTreeWidgetItem, double clicking on a column and typing...
2. A new QTreeWidgetItem is added to the tree (while typing)
-> the item i was editing loses focus, and i lose my changes when a new item
is added while typing...
How can i avoid this without complicating too much the logic?
Thanks for any hint.
--
[ signature omitted ]
Message 2 in thread
Hi,
> 1. I am editing a QTreeWidgetItem, double clicking on a column and
> typing...
>
> 2. A new QTreeWidgetItem is added to the tree (while typing)
>
> -> the item i was editing loses focus, and i lose my changes when a new
> item
> is added while typing...
>
Can you please clarify the following.
Let's say you make a double click on item (nRowNumber == 0, nColumnNumber ==
0), what happend next?
"2. A new QTreeWidgetItem is added to the tree" - Where???
--
[ signature omitted ]