Quantcast
Viewing all articles
Browse latest Browse all 4972

Draw ellipse in Qt5 (porting QPainter functionalities using QSG* classes)

Well yes as far as I know the complete Qt scene graph is drawn with OpenGL, so the QSG files are just some interface classes for open GL in the end, to abstract open GL a little bit and reuse common stuff like line drawing etc. But if you really want to draw 1000 or even millions of the same object you should consider doing a native open GL approach if you care about the best performance, that can also be done with QQuickItem (without using any of the QSG* classes), you just need to override the “paint” method, there are some examples somewhere I think.

Viewing all articles
Browse latest Browse all 4972

Trending Articles