Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-1717

When moving the mouse out of the QTreeWidget, if there is a status tip then it is not cleared

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 4.6.1
    • 4.3.4
    • Widgets: Itemviews
    • 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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            smd Jan Arve
            anshaw Andy Shaw (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes