GlobeEngine
SimpleQTViewer.h
Go to the documentation of this file.
1 #ifndef GlobeEngineSimpleQTViewer_H
2 #define GlobeEngineSimpleQTViewer_H
3 
4 #include "OpenGL_Includes.h"
6 #include <QMainWindow>
7 
8 #ifdef GENGINE_QT5
9 QT_FORWARD_DECLARE_CLASS(QOpenGLWidget)
10 #endif
11 
12 namespace geQT {
13  class SimpleQTViewer : public QMainWindow
14  {
15  Q_OBJECT
16  public:
17 #ifdef GENGINE_QT5
18  SimpleQTViewer(SimpleQTViewerGLWidget* _glWidget, QWidget *parent = 0, Qt::WindowFlags flags = 0);
19 #else
20  SimpleQTViewer(SimpleQTViewerGLWidget* _glWidget, QWidget *parent = 0, Qt::WFlags flags = 0);
21 #endif
23 
24  protected:
25  void keyPressEvent(QKeyEvent *event);
26  void keyReleaseEvent(QKeyEvent *e);
27 
28  protected:
30  };
31 }
32 #endif
void keyPressEvent(QKeyEvent *event)
Definition: SimpleQTViewer.cpp:35
SimpleQTViewerGLWidget * glWidget
Definition: SimpleQTViewer.h:29
Definition: SimpleQTViewerGLWidget.h:24
void keyReleaseEvent(QKeyEvent *e)
Definition: SimpleQTViewer.cpp:44
Definition: ClickableQLabel.h:8
SimpleQTViewer(SimpleQTViewerGLWidget *_glWidget, QWidget *parent=0, Qt::WFlags flags=0)
Definition: SimpleQTViewer.cpp:21
Definition: SimpleQTViewer.h:13
~SimpleQTViewer()
Definition: SimpleQTViewer.cpp:30