diff options
| author | Laszlo Agocs <laszlo.agocs@qt.io> | 2023-02-27 12:37:30 +0100 |
|---|---|---|
| committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2023-02-28 14:28:51 +0100 |
| commit | 6462a454e3d53c3711817b510cff59c136711b9e (patch) | |
| tree | 29afaf653198da1e8eac0d15f2a878fb947abc0c /examples/opengl/threadedqopenglwidget/glwidget.h | |
| parent | 86a517ac786c90b9ce8deb502c413287e31058c2 (diff) | |
Remove threadeqopenglwidget example
It is neither documented nor very useful, and it has
platform-specific issues as reported over the years.
Remove it now as part of the example revamp initiative.
Task-number: QTBUG-50278
Task-number: QTBUG-110093
Task-number: QTBUG-76054
Task-number: QTBUG-43209
Pick-to: 6.5
Change-Id: I6dadaf4162b4c19411c544b9f204c19e37aa740d
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
Diffstat (limited to 'examples/opengl/threadedqopenglwidget/glwidget.h')
| -rw-r--r-- | examples/opengl/threadedqopenglwidget/glwidget.h | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/examples/opengl/threadedqopenglwidget/glwidget.h b/examples/opengl/threadedqopenglwidget/glwidget.h deleted file mode 100644 index 12f234bc5cd..00000000000 --- a/examples/opengl/threadedqopenglwidget/glwidget.h +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (C) 2022 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause - -#ifndef GLWIDGET_H -#define GLWIDGET_H - -#include <QOpenGLWidget> - -QT_FORWARD_DECLARE_CLASS(QThread) - -class Renderer; - -class GLWidget : public QOpenGLWidget -{ - Q_OBJECT -public: - explicit GLWidget(QWidget *parent = nullptr); - ~GLWidget(); - -protected: - void paintEvent(QPaintEvent *) override { } - -signals: - void renderRequested(); - -public slots: - void grabContext(); - -private slots: - void onAboutToCompose(); - void onFrameSwapped(); - void onAboutToResize(); - void onResized(); - -private: - QThread *m_thread; - Renderer *m_renderer; -}; - -#endif // GLWIDGET_H |
