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. Assign a var property to another offline
Forum Updated to NodeBB v4.3 + New Features

Assign a var property to another offline

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 397 Views 1 Watching
  • 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.
  • M Offline
    M Offline
    mehrdad
    wrote on last edited by
    #1

    Hi,
    following code is a chart data variable that i try to set it to my chart offline
    in other words, i want to set this property to my chart and when i change values of this var, it don't change my chart

    @ property var cl : {
    'labels': ["January","February","March","April","May","June","July","January"],
    'datasets': [{
    fillColor : "red",
    strokeColor : Qt.rgba(220,220,220,1),
    pointColor : Qt.rgba(220,220,220,1),
    pointStrokeColor : "#fff",
    pointHighlightFill : "#fff",
    pointHighlightStroke : Qt.rgba(220,220,220,1),
    data : [100,100,100,20,0,0,0,0]
    }, {
    fillColor: "blue",
    strokeColor: Qt.rgba(151,187,205,1),
    pointColor: Qt.rgba(151,187,205,1),
    pointStrokeColor: "#ffffff",
    pointHighlightFill : "#fff",
    pointHighlightStroke : Qt.rgba(220,220,220,1),
    data : [0,10,10,20,20,100,20,100]
    }]
    }@

    my assign code is:
    @selected.chartData=cl@

    please help!!!!!

    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