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

QDeclarativeAbstractSeries lowerSeries and upperSeries properties are non-NOTIFYable

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.15.10, 6.2.2
    • Charts
    • None

      The lowerSeries and upperSeries properties are non-NOTIFYable while they probably should be, if only for completeness sake. Not that it wouldn't work, they won't change often anyways, if ever, but if there's code that accesses them, this results in annoying log spamming.

       

      For instance, I use ChartView with AreaSeries and a MouseArea on top for cursor-tracking to show/update a tooltip as the mouse moves over the graph. Example code:

      text: areaSeries.upperSeries.at(hoveredIndex).y.toFixed(2)
      

      Which produces this message for every moved pixel:

      QQmlExpression: Expression qrc:/ui/mainviews/energy/ConsumersHistory.qml:312:29 depends on non-NOTIFYable properties:
       QtCharts::DeclarativeAreaSeries::upperSeries
       
      

       

      Side note:

      Given I have to instantiate the areaSeries on the fly, through JavaScript, I can't directly reference the uppserSeries unless I keep a reference to them directly which would be a redundancy given I already keep references to the areaSeries.

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

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

              Created:
              Updated:

                There are no open Gerrit changes