En esta página

Ejemplo de series con aceleración OpenGL

El ejemplo muestra cómo habilitar la aceleración OpenGL para QLineSeries y QScatterSeries.

Captura de pantalla en la que se ven varios gráficos de OpenGL apilados

Ejecución del ejemplo

Puedes ejecutar el ejemplo desde:

Activación de la aceleración OpenGL

Para crear una serie acelerada con OpenGL, lo único que hay que hacer, en comparación con una serie normal, es establecer la propiedad « QAbstractSeries::useOpenGL » en « true »:

series->setUseOpenGL(true);

Esto hace que el gráfico instancie un QOpenGLWidget transparente que se utiliza para dibujar la serie acelerada sobre el gráfico.

Nota: La aceleración OpenGL solo es compatible con QLineSeries y QScatterSeries.

Proyecto de ejemplo en code.qt.io

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.