PDA

View Full Version : QTreeWidget & itemLeaved



nakkore
25th January 2009, 10:35
Hi All,
i see in QTreeWidget doc an itemEntered signal but no itemLeaved signal seems to be present how could i achieve this behaviour ?
I need to know how long the mouse pointer is on a item before moving to another one or leave the treewidget so i was thinking that a leaveItem signal should helps in this. Any ideas ?

Thanks in advance

wysota
25th January 2009, 11:40
You will get an itemEntered event for a different item (or null probably) and leaveEvent for the viewport when you leave the viewport.

nakkore
25th January 2009, 13:16
yep i know, i read the docs but did'nt find the answer to my question: how could i know when i leave an item ?

wysota
25th January 2009, 18:00
I think I already said that :) You will leave an item when you enter some other item as items do not overlap.

hannes61
18th January 2013, 14:20
You will get an itemEntered event for a different item (or null probably) and leaveEvent for the viewport when you leave the viewport.

Sorry no answer.
??
When you reach the last entry in the tree and move the mouse down.
You don't get a message that the mouse entered an other item or left this item.
So you don't know that the mouse is no longer over that item.

I expected to get something like itemEntered(NULL) when the mouse is no longer
over an item, or the mouse leaves the tree widget.