wasm ui doesn't fit in browser window until resized
-
I have a Qt widget wasm compiled application. Everything is working fine with one exception:
When the application is loaded in the browser, the ui doesn't fit vertically (horizontal is fine) with some elements falling out of the bottom of the window. A browser window resize (presumably creating a resize event) makes everything fit. Forcing a resize event after setupUi(this); by adding:
this->resize(this->width(), (this->height() - 1));
made no difference.
I've used layouts, the ui is a Designer authored QMainWindow. Qt 6.5.3. Tested in current FireFox & Chromium browsers with identical results.
What am I missing?
-
Hi,
I have the same problem. Have developen a qt widget webasm application on qt 6.8 where the main annoyance right now is this problem.
If browser windows is lesser than the default widget size it will not adjust to the browser window unless browser window is resized just so little it adjusts just fine to the size. It is like it fails to read the browser size when layout the main window.