Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
4.3.4
-
None
-
fc835ea41dffaa7ac6247c2d0d602aadf0e0f09b
Description
When moving the mouse out of the QTreeWidget, if there is a status tip then it is not cleared even though the mouse is no longer over the item.
The following example demonstrates the problem:
#include <QtGui>
int main(int argc, char **argv)
{
QApplication a(argc, argv);
QMainWindow mw;
QTreeWidget *tw = new QTreeWidget(&mw);
tw->setColumnCount(1);
tw->viewport()->setMouseTracking(true);
QTreeWidgetItem *item = new QTreeWidgetItem(QStringList() << "Test long long long long test");
item->setStatusTip(0, "go for it");
tw->addTopLevelItem(item);
mw.setCentralWidget(tw);
mw.statusBar();
mw.show();
return a.exec();
}
Move the mouse cursor over the item and then move the cursor to the sides, note the status tip never resets unless you move into the whitespace underneath the last item in QTreeWidget.