T
T
tozika2016-10-17 22:24:06
Canvas
tozika, 2016-10-17 22:24:06

How to link QML(QtQuick) together with C++ and Canvas?

Hello everyone
. Please help me with solving the problem, I'm struggling and I can't solve the problem in any way. It is
necessary to draw a graph online, values ​​​​come into the buffer and I need a graph from them.
Tried qtcharts and couldn't configure it to use it. I couldn’t do the rest (custom raft and cwt) because I didn’t understand how to integrate all this in Qt Quick Controls Aplication 2.
Now I decided to try with canvas, but it doesn’t work either. The values ​​​​are all in the SPP layer in the buffer, how can I transfer them to qml so that I can use them in the canvas,
I will be very grateful

Answer the question

In order to leave comments, you need to log in

2 answer(s)
J
Jacob E, 2016-10-18
@tozika

https://habrahabr.ru/post/302428/

R
RabraBabr, 2016-11-23
@RabraBabr

Use macros Q_PROPERTY for properties and Q_INVOKABLE for functions. The class must inherit from QObject. In main, we register in QML using qmlRegisterType. All.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question