rend la fenêtre plus grande par défaut

This commit is contained in:
papush! 2021-09-24 23:03:48 +02:00
parent df2c318429
commit fd19984bcf
2 changed files with 6 additions and 0 deletions

View File

@ -42,6 +42,11 @@ MeshViewer::MeshViewer(QWidget *parent) : QOpenGLWidget(parent) {
} }
QSize MeshViewer::sizeHint() const {
return QSize(640, 480);
}
void GLAPIENTRY void GLAPIENTRY
opengl_debug_cb(GLenum source, opengl_debug_cb(GLenum source,
GLenum type, GLenum type,

View File

@ -33,6 +33,7 @@ class MeshViewer : public QOpenGLWidget {
public: public:
MeshViewer(QWidget *parent=nullptr); MeshViewer(QWidget *parent=nullptr);
virtual QSize sizeHint() const override;
void initializeGL() override; void initializeGL() override;
void resizeGL(int w, int h) override; void resizeGL(int w, int h) override;
void paintGL() override; void paintGL() override;