Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Bind value to dynamic Chartview series name
Forum Updated to NodeBB v4.3 + New Features

Bind value to dynamic Chartview series name

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 119 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.
  • P Offline
    P Offline
    PavloPonomarov
    wrote on last edited by
    #1

    Hello
    I am creating chart series in loop as follows:

    chart.createSeries(ChartView.SeriesTypeLine, collection.aliases[i], axisX, axisY);
    

    But unlike

    LineSeries{
       name: collection.aliases[i]
    }
    

    dynamically created serie will not bind series.name to collection.aliases[i]
    I've tried to use Qt.binding(), but it won't save the context even in nested function and all series get same name when binding is triggered. Clojure is able to save the context, but there is an extra function inside it (I mean Qt.binding(function))
    My question is:
    Is there a way to dynamically create Binding via Qt.createObject or maybe there is a more elegant way to bind dynamically created serie?

    Thank you in advance

    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