Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Plotting a graph to QtQuick context with opengl
Eligijus last edited by
I have no experience in qml or opengl and I want to write a basic graph plotting application. I have graph data in c++ and I want to paint it to QtQuick context. What "interface" should I use for best performance?
My "interface" when using QPainter was QWidget and I draw lines void QPainter::drawLine(const QLineF & line).
You can reuse your QPainter code by using QQuickPaintedItem.
Or you can use the QtCharts module.
Or draw directly in OpenGL, but that would require learning it first.