ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Can I add Multithreading Real-Time Chart to qml
Posted by jill on Dec-31-2019 02:49
Hi Multithreading Real-Time Chart has Qt project file (for C++/Qt), Can it also be used in qml code?

  Re: Can I add Multithreading Real-Time Chart to qml
Posted by jill on Jan-01-2020 13:54
Is it possible to change (QWidget *parent) class to QuickItem (or QQuickPaintedItem)?

  Re: Can I add Multithreading Real-Time Chart to qml
Posted by Peter Kwan on Jan-01-2020 16:04
Hi Jill,

It should be easy to display the Multi-Threading Real-Time Chart. Although I have not used QML before, I think I can create an example quite quickly.

The most difficult part is the user interaction - the track cursor, zooming and scrolling. etc.

For your case, is displaying the multi-threading real-time chart sufficient? Do you need to zoom/scroll and have track cursor?

Regards
Peter Kwan

  Re: Can I add Multithreading Real-Time Chart to qml
Posted by jill on Jan-01-2020 17:33
Hi, Thank you, It's great that you create an example of it
Yes, I need zoom/scroll

  Re: Can I add Multithreading Real-Time Chart to qml
Posted by jill on Jan-01-2020 17:37
I used realtimemultithread example that had zoom/scroll

  Re: Can I add Multithreading Real-Time Chart to qml
Posted by Peter Kwan on Jan-03-2020 03:41
Hi Jill,

Currently, I can only provide an example that displays the chart as follows:

https://www.advsofteng.com/support/qml_realtime_multithread_chart.zip

The above is currently hard coded to display the last 60 seconds of data. For zooming and scrolling, you may need to port the sample code yourself. Basically, you need to add some additional user interface (such as adding a scrollbar for scrolling and handling the mouse wheel events for zooming), and use them to control the range of data to display.

Regards
Peter Kwan

  Re: Can I add Multithreading Real-Time Chart to qml
Posted by jill on Jan-04-2020 01:35
Hi, thank you for providing this example, it helps a lot
But I have an error with the library when run it

":-1: error: error: ....lib32chartdir60.lib: No such file or directory"

I am trying to add an external library again but it gives me:

":-1: error: cannot find -lchartdir60d"

  Re: Can I add Multithreading Real-Time Chart to qml
Posted by Peter Kwan on Jan-05-2020 01:16
Hi jill,

Sorry about this problem. When I prepared the zip file, I modify the directory structure and forget to update the project file. The path should be set to ..\lib32\chartdir60.lib instead of ..\..\lib32\chartdir.lib.

I have just updated the download to include the correctly project file. Please download again and use the updated example.

Regards
Peter Kwan