[Qt-interest] The ToolTip for QTreeWidgetItem

lvbing lvbing lvbing1981 at gmail.com
Tue Nov 2 01:32:01 CET 2010


Hello,My Platform is Qt4.5 and win7.
I have an UI to display a QTreeWidget,and I want to display the tooltip when
the mouse enter the QTreeWidgetItem,
so I setTooltip when emit the signal : itemEntered(QTreeWidgetItem*,int)
The function is :
void MAlarm::on_TreeWidget_itemEnter(QTreeWidget* item,int col)
{
    if(!item)
        return;
    QString strTip = GetToolTip();
    item->setToolTip(strTip);
}

the problem is that:
When I switch the items, if the current item's tip info is same to the
before item, the tip's postion will not be changed!

So is it a bug or other?
thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20101102/a3fe1e58/attachment.html 


More information about the Qt-interest-old mailing list