[Qt5-feedback] QML/SceneGraph graphics primitives

gunnar.sletta at nokia.com gunnar.sletta at nokia.com
Thu May 12 11:58:32 CEST 2011


Hi Stefan,

Why don't you just use a QSGPaintedItem which will paint to an offscreen surface using a QPainter. Then you have all the power of the current 2D API at your disposal. 

We are currently not planning on adding any new primitives to QML, we are just improving the ones we have. 

Through the public scene graph API, you can create your own primitives and we have some basic materials (like flat coloring) available. The API is not raw OpenGL, but more low-level than QPainter.

-
Gunnar

On May 12, 2011, at 11:16 AM, ext Stefan Majewsky wrote:

> Moin moin,
> 
> I would like to know which set of graphics primitives is planned ATM
> to ship with SceneGraph. Last weekend, I tried to draw a simple graph
> in QML with Qt 4.7 (where, by graph, I mean a set of connected
> vertices). I got stuck at the point that neither Line nor Ellipse
> elements are available. The Line I could implement using a translated
> and rotated Rectangle, but I surrendered at the Ellipse.
> 
> Will I have ellipses available on QML/SceneGraph, or will I need to
> learn OpenGL programming?
> 
> Greetings
> Stefan
> _______________________________________________
> Qt5-feedback mailing list
> Qt5-feedback at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt5-feedback



More information about the Qt5-feedback mailing list