PDA

View Full Version : How to show my toolTip in QTreeWidget?



cspp
14th May 2009, 11:54
I use the setToolTip in QTreeWidgetItem,but it didn't work well.
how could i do to show the toolTip?

and, my QTreewidget is refresh in 0.5sec,if the tooltip sdisplay,how could it still show?

thanks:D

wagmare
14th May 2009, 11:59
are u trying like this ...
QPoint value(x, y)
QString text = "text";
QToolTip::showText(value, text);

cspp
14th May 2009, 12:09
where to user those code?
I just user like this:


QTreeWidgetItem* item = new QTreeWidgetItem();
//...
item->setToolTip(i,QString("My ToolTip Text"));


and my Qt version is Qt4.3.2