Skip to content

Commit

Permalink
Merge pull request #12945 from fwcd/openglwindow-frameless
Browse files Browse the repository at this point in the history
OpenGLWindow: Fix sizing on Wasm by setting `Qt::FramelessWindowHint`
  • Loading branch information
JoergAtGithub authored Mar 10, 2024
2 parents de0be22 + d457c04 commit 61751bc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/widget/openglwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@
OpenGLWindow::OpenGLWindow(WGLWidget* pWidget)
: m_pWidget(pWidget) {
setFormat(WaveformWidgetFactory::getSurfaceFormat());
#ifdef __EMSCRIPTEN__
// This is required to ensure that QOpenGLWindows have no minimum size (When
// targeting WebAssembly, the widgets will otherwise always have a minimum
// width and minimum height of 100 pixels).
setFlag(Qt::FramelessWindowHint);
#endif
}

OpenGLWindow::~OpenGLWindow() {
Expand Down

0 comments on commit 61751bc

Please sign in to comment.