the main re-sizable window which contains a GLWindow widget used to hold our basic gl applications More...
#include <MainWindow.h>
Public Member Functions | |
MainWindow (QWidget *_parent=0) | |
constructor | |
~MainWindow () | |
dtor free up the GLWindow and all resources | |
Protected Member Functions | |
void | keyPressEvent (QKeyEvent *_event) |
override the keyPressEvent inherited from QObject so we can handle key presses. | |
void | keyReleaseEvent (QKeyEvent *_event) |
void | resizeEvent (QResizeEvent *_event) |
override the resizeEvent inherited from QObject so we can handle key presses. | |
Private Attributes | |
GLWindow * | m_gl |
here we add our GLWindow extending the base functionality of our class |
the main re-sizable window which contains a GLWindow widget used to hold our basic gl applications
Definition at line 16 of file MainWindow.h.
MainWindow::MainWindow | ( | QWidget * | _parent = 0 |
) |
constructor
_parent | the parent window the for this window |
MainWindow::~MainWindow | ( | ) |
dtor free up the GLWindow and all resources
void MainWindow::keyPressEvent | ( | QKeyEvent * | _event | ) | [protected] |
override the keyPressEvent inherited from QObject so we can handle key presses.
[in] | _event | the event to process |
void MainWindow::keyReleaseEvent | ( | QKeyEvent * | _event | ) | [protected] |
void MainWindow::resizeEvent | ( | QResizeEvent * | _event | ) | [protected] |
override the resizeEvent inherited from QObject so we can handle key presses.
[in] | _event | the event to process |
GLWindow* MainWindow::m_gl [private] |
here we add our GLWindow extending the base functionality of our class
our gl window created in GLWindow.h
Definition at line 47 of file MainWindow.h.