diff --git a/src/mesh_viewer.cpp b/src/mesh_viewer.cpp index 66c3b9c..e705e15 100644 --- a/src/mesh_viewer.cpp +++ b/src/mesh_viewer.cpp @@ -42,6 +42,11 @@ MeshViewer::MeshViewer(QWidget *parent) : QOpenGLWidget(parent) { } +QSize MeshViewer::sizeHint() const { + return QSize(640, 480); +} + + void GLAPIENTRY opengl_debug_cb(GLenum source, GLenum type, diff --git a/src/mesh_viewer.h b/src/mesh_viewer.h index f8db306..55355c8 100644 --- a/src/mesh_viewer.h +++ b/src/mesh_viewer.h @@ -33,6 +33,7 @@ class MeshViewer : public QOpenGLWidget { public: MeshViewer(QWidget *parent=nullptr); + virtual QSize sizeHint() const override; void initializeGL() override; void resizeGL(int w, int h) override; void paintGL() override;