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

In a qml TableView with a QSortFilterProxymodel, sorting leads to unexpected hover events

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.7.3
    • None
    • Windows

    Description

      In a qml TableView with a QSortFilterProxymodel, sorting leads to unexpected hover events

       

      See attached .gif. When sorting column 1 suddenly another column gets a hover event and displays the tooltip.

       

      Tooltip shoud only be shown when the item at index is hovered:

       

      ToolTip {
         text: "index: " + index
         delay: 1
         visible: hoverHandler.hovered
      } 

       

      Workaround:

      Set model of TableView to undefinded before sorting and reset after.

       

      Attachments

        1. hover-wrong.gif
          hover-wrong.gif
          76 kB
        2. TableView.7z
          4 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            pklaffert Philipp Klaffert
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes