Qt 6.12 LTS is out! See what's new in the release
blog
What is the preferred way to create and paint QML graphic objects in C++ ?
QML and Qt Quick
4
Posts
3
Posters
1.6k
Views
1
Watching
-
What is the preferred way to create and paint QML graphic objects in C++ ?
-
Hi,
Use the Scene Graph classes. http://qt-project.org/doc/qt-5/qtquick-visualcanvas-scenegraph.html
-
Thanks.
Should I use QQuickItem or QQuickPaintedItem ? -
You can use either of them. QQuickItem uses the new Scene Graph type of rendering, while the QQuickPaintedItem uses the old QPainter. Performance of both are comparable.