Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

Drawing a graph in Qt Quick 2.0

$
0
0
Hello, thanks for the answers. chrisadams , I didn’t know about beginCreateObject, I’ll try it! Maybe I could use the C++ side of the animation engine, or maybe use a QtObject for each line just to handle state and position, and do the drawing in a shared item… Jens, this was “option three”: using an QSGItem directly. Unfortunately this approach works, but requires to generate a low level tessellation of the geometry. This means that you cannot use all the QPainter goods, and you need to generate the vertexs, color coordinates, textures (line caps, joins,effects,gradients, etc…). This will be much faster but requires a good amout of work. And even in this case I “suspect” that I’ll have to share vertex buffers, I don’t think creating a number of small nodes/buffers will be so good in terms of performance…

Viewing all articles
Browse latest Browse all 4972

Trending Articles