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

XYSeries.hovered() doesn't behave as documented

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.15.1
    • Charts
    • None
    • Windows

    Description

      According to the documentation for the 'hovered(point point, bool state)' signal for XYSeries, "This signal is emitted when a mouse is hovered over the point point in the chart. When the mouse moves over the point, state turns true, and when the mouse moves away again, it turns false."

       

      This does not seem to behave as documented. If two points (or their respective targets for the hovered() signal) overlap, the signal is only emitted when hovering over the first point, but no signals are emitted when moving from the first to the second point - according to the documentation we should receive two signals (one for leaving the first point and one for entering the second point). The signal with state == false is only emitted once both points are left.

       

      This behavior makes it impossible to use the signal to present a data tool tip for densely populated data (e.g., a series of more or less continuous points).

      Attachments

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

        Activity

          People

            e0348803 Miikka Heikkinen
            aamann aamann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes