Plotting a graph to QtQuick context with opengl
Solved
General and Desktop
-
Hello,
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.