qt - More efficient central widget in a QMainWindow: QGLWidget VS QGraphicsView -


i using qmainwindow app , want opengl rendering. 2 approaches:

1) set central widget qglwidget , rendering there,

or

2) set central widget qgraphicsview, set viewport qglwidget create rendering context , rendering in scene.

which 1 preferable when comes efficiency? (i adding other objects later in former case going qglwidgets (as child widgets) , in latter qgaphicsitems)

using qglwidget , rendering opengl directly in cases more efficient, require more work manage dynamic set of rendered items. using qgraphicsview framework have overhead, provides many features managing rendered items. amount of overhead qgraphicsview depend upon various details, in cases not bottleneck , can adjusted various usage patterns.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -