PDA

View Full Version : how to display full tree item name on mouse move ?



rajesh
15th November 2006, 07:03
Hi,

I want to display full tree item name on mouse move like VC++ Solution Explorer.
How to do this?

jpn
15th November 2006, 07:30
QTreeWidgetItem::setToolTip()

rajesh
15th November 2006, 07:47
jpn,

setToolTip() displays data down to item, but in VC++ it showing above on item.

wysota
15th November 2006, 07:57
So implement your own tooltip that will center itself over the item using QToolTip::showText(). An example is provided within Qt bundle.

rajesh
15th November 2006, 08:02
one more thing I found in VC++ window:
if item already displayed in full then VC++ not displaying tool tip.
it display only when item fully not displayed ( like...)

any idea?

wysota
15th November 2006, 08:41
I think you should just sit down and implement it. To mimic, just check out if the item is fully visible and act upon it.