From fd19984bcfbe26a0478dc2672d9ebeb93619e6fc Mon Sep 17 00:00:00 2001 From: papush! Date: Fri, 24 Sep 2021 23:03:48 +0200 Subject: [PATCH] =?UTF-8?q?rend=20la=20fen=C3=AAtre=20plus=20grande=20par?= =?UTF-8?q?=20d=C3=A9faut?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mesh_viewer.cpp | 5 +++++ src/mesh_viewer.h | 1 + 2 files changed, 6 insertions(+) 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;