PDA

View Full Version : select a QTreeWidgetItem



mattia
21st December 2007, 10:38
Hello, I have a QTreeWidget with some QTreeWidgetItem in, i'd like to select one of them, to do this i get the QTreeWidgetItem that i want to select and then i use the method setCurrentItem ( QTreeWidgetItem ), but it doesn't work...any suggestion?
thx

high_flyer
21st December 2007, 11:00
but it doesn't work...
What do you mean?

Some code would help too.

jpn
21st December 2007, 11:01
Sure it works when used properly. Would you mind showing relevant code or something? Notice also that there is a difference between current item and selected items. Current item is the one having focus. Depending on the selection mode, there may be multiple selected items but only one current item.