이 페이지에서

OpenGL 가속화 시리즈 예제

이 예제는 QLineSeries 및 QScatterSeries에서 OpenGL 가속을 활성화하는 방법을 보여줍니다.

여러 개의 OpenGL 차트가 겹쳐진 모습을 보여주는 스크린샷

예제 실행

다음 위치에서 예제를 실행할 수 있습니다.

OpenGL 가속 활성화

OpenGL 가속 시리즈를 생성하려면, 일반 시리즈와 비교하여 QAbstractSeries::useOpenGL 속성을 true 로 설정하기만 하면 됩니다:

series->setUseOpenGL(true);

이렇게 하면 차트가 투명한 QOpenGLWidget을 인스턴스화하여, 차트 위에 가속화된 시리즈를 그리는 데 사용합니다.

참고: OpenGL가속은 QLineSeries 및 QScatterSeries에서만 지원됩니다.

예제 프로젝트 @ 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.