PDA

View Full Version : Qt treeWidget and arrow key usage help.



narendra
11th December 2009, 13:06
Hi,
We can navigate the tree items in treewidget using arrow key.

My question is which signal should i catch in this case to know the item selected using arrow key not mouse.
I am using itemClicked now but i want my application to support even the arrow keys.

spirit
11th December 2009, 13:47
did you try QTreeWidget::itemActivated?

narendra
11th December 2009, 18:03
Ya, but it doest seems to work.

narendra
11th December 2009, 18:33
Thanks, i figured it out

itemSelectionChanged() signal works