Details
-
Task
-
Resolution: Done
-
P2: Important
-
None
-
None
Description
Qt for WebAssembly now supports adding and removing canvases/screens at run-time, which makes it possible to end up with no screens.
This is not a well-tested configuration for Qt Gui. Qt for wasm now provides a convenient way to reproduce the no-screen configuration (screens are virtual, you don't have to unplug all monitors), so this is a good opportunity to improve no-screen support in cross-platform code.
Issues:
- stale browser window resize handlers after canvas removal: https://codereview.qt-project.org/#/c/259866/
- QOpenGLWindow destructor requires a QScreen (via QOffScreenSurface).
- QDesktopWidget assumes at least one screen
Attachments
Issue Links
- relates to
-
QTBUG-75768 keepassxc: segfault at error 4 in libQt5WaylandClient
- Closed
For Gerrit Dashboard: QTBUG-75463 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
259866,4 | wasm: install one browser window resize handler | 5.13.0 | qt/qtbase | Status: MERGED | +2 | 0 |
260013,3 | wasm: prevent crash on null backingstore pointer | 5.13.0 | qt/qtbase | Status: MERGED | +2 | 0 |
260014,3 | wasm: use correct coordinates when blitting | 5.13.0 | qt/qtbase | Status: MERGED | +2 | 0 |
260015,3 | wasm: add QWasmOffscreenSurface | 5.13.0 | qt/qtbase | Status: MERGED | +2 | 0 |
260016,3 | wasm: controlled screen destruction | 5.13.0 | qt/qtbase | Status: MERGED | +2 | 0 |
260017,3 | wasm: rewrite/simplify OpenglContext | 5.13.0 | qt/qtbase | Status: MERGED | +2 | 0 |
260018,3 | QOpenGLWindow: set QOffScreenSurface screen | 5.13.0 | qt/qtbase | Status: MERGED | +2 | 0 |