2 #ifndef VIDEOGLWIDGET_H
3 #define VIDEOGLWIDGET_H
7 class VideoGLWidget : public QGLWidget
12 explicit VideoGLWidget(QWidget *parent = 0);
14 void activateMonitor();
15 QSize minimumSizeHint() const;
16 QSize sizeHint() const;
17 void setImageAspectRatio(double ratio);
18 void setBackgroundColor(const QColor &color) {
19 m_backgroundColor = color;
23 void showImage(const QImage &image);
27 void resizeGL(int width, int height);
28 void resizeEvent(QResizeEvent* event);
30 void mouseDoubleClickEvent(QMouseEvent * event);
34 int m_image_width, m_image_height;
36 double m_display_ratio;
37 QColor m_backgroundColor;
38 Qt::WindowFlags m_baseFlags;