[Interest] How to populate ChartView CandlestickSeries from JS?

2021-01-29 Thread Federico Ferri
I need to populate a CandlestickSeries inside a ChartView:

ChartView {
id: chartView
width: 600
height: 400
CandlestickSeries {
id: series
name: "test"
}
}

tried the following code, but nothing is added to the chart:

for(var i = 0; i < data.length; i++) {
var x = data[i]
var css = Qt.createQmlObject('import QtCharts 2.15;
CandlestickSet {}', dataProvider, "dynamicSnippet1")
css.timestamp = x.timestamp * 1000
css.open = x.open
css.high = x.high
css.low = x.low
css.close = x.close
series.append(css)
console.log(x.timestamp, x.open, x.high, x.low, x.close)
}

it seems the append() method of CandlestickSeries doesn't take raw values
just like XYSeries
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] Qt 6 Ubuntu package

2021-01-29 Thread Lisandro Damián Nicanor Pérez Meyer
Hi!

On Thu, 28 Jan 2021 at 03:57, Florian Bruhin  wrote:
>
> Hey,
>
> On Thu, Jan 28, 2021 at 12:08:44PM +0530, Nibedit Dey wrote:
> > I am looking for a way to install Qt6 without downloading the
> > *qt-unified-linux-x86-4.0.1-online.run* file.
> > Is there a Qt 6 Ubuntu package like the one for Qt 5? e.g.:- *sudo apt-get
> > install qt5-default*
>
> Ubuntu's packages are mostly inherited from Debian, where the Qt package
> maintainers stepped down before the Qt 6 release because of a lack of
> time:
>
> https://perezmeyer.blogspot.com/2020/08/stepping-down-as-qt-6-maintainers.html
> https://www.phoronix.com/scan.php?page=news_item=Debian-Needs-Qt6-Maintainers
>
> Also see:
>
> https://alioth-lists.debian.net/pipermail/pkg-kde-talk/2021-January/003236.html
>
> Given that everyone there is focusing on the next Debian Stable
> (Bullseye) which will ship Qt 5.15.2, I doubt there was work on Qt 6 so
> far.

I can also add that so far no one stepped up to do the job yet. I only
got one request for information about it.
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest