OpenGL 가속 시리즈 예제
이 예제는 QLineSeries 및 QScatterSeries 에 대해 OpenGL 가속을 활성화하는 방법을 보여줍니다.
예제 실행하기
에서 예제를 실행하려면 Qt Creator에서 Welcome 모드를 열고 Examples 에서 예제를 선택합니다. 자세한 내용은 예제 빌드 및 실행하기를 참조하세요.
OpenGL 가속 활성화하기
일반 시리즈와 비교하여 OpenGL 가속 시리즈를 만들려면 QAbstractSeries::useOpenGL 속성을 true
으로 설정하기만 하면 됩니다:
series->setUseOpenGL(true);
이렇게 하면 차트 위에 가속화된 계열을 그리는 데 사용되는 투명한 QOpenGL위젯이 차트에 인스턴스화됩니다.
참고: OpenGL 가속은 QLineSeries 및 QScatterSeries 에서만 지원됩니다.
© 2025 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.