PDA

View Full Version : Tool Tip on mouse move in QTreeWidget?



vishal.chauhan
27th June 2007, 07:31
Hi All,

I m using Qt 4.1.5 on my MAC.
I have a QTreeWidget which is on the Left side of my QMainWindow.
I have some Item on this treeWidget and I want when user move mouse on a perticular Item it show the Text of that TreeWidgetItem in the tooltip and so..on.

If any body knows how I can do this then plz help me out.

Thanks.

guilugi
27th June 2007, 08:42
Simple, you should check the QTreeWidgetItem docs ;-)
This should work :


item->setToolTip(column_index, item->text(column_index));

Guilugi.