Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. How to edit the signal handler of a series that is created by using createSeries?
Qt 6.11 is out! See what's new in the release blog

How to edit the signal handler of a series that is created by using createSeries?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 626 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Q Offline
    Q Offline
    qtLove
    wrote on last edited by qtLove
    #1

    I tried to do this

    Component{
           id:splineLine
           SplineSeries{         }
       }
    

    and this

    splineLine.createObject(chart,{"name": ALine ,"xAxis":chart.xAxis,"yAxis":chart.yAxis})
    

    instead of the standard way:

    var name=ALine
    chart.createSeries( ChartView.SeriesTypeSpline, name , chart.xAxis, chart.yAxis)
    

    to create a series for chart (a chartView)

    but it does not seems to work, the chart didn't display the ALine

    I would like to edit the series' for example onClick function, but I can not do this if I create the Series by using createSeries

    Create a series component first then use createObject does not seem to work, the spline didn't seem to be belonged to the chart.
    Does someone know how to do this?

    BTW, What is the different between those two method?

    Thank you for answering my question

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved