Details
-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
6.7, 6.8
-
None
-
-
9293fb9bd (dev)
Description
As summary (and as alluded to in QTBUG-120138). Any Quick Window instances have blank title bars under WebAssembly. This is because QWasmWindow::setWindowFlags sets the relevant CSS properties ultimately based on the contents of the Window.flags QML property, by default simply Qt.Window. If the flags property is manually set to include Qt.WindowTitleHint and Qt.WindowCloseButtonHint etc., the title bar visual elements appear as expected.
It's not intuitive to have to manually specify these things and indeed doesn't match the behaviour of other platforms so something is clearly wrong here. Browsing the source I wonder if QWasmWindow needs to include something like fixTopLevelWindowFlags from qwindowswindow.cpp? Not sure.
Attachments
For Gerrit Dashboard: QTBUG-126335 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
569431,5 | wasm: Change window flags for toplevel windows | dev | qt/qtbase | Status: MERGED | +2 | 0 |
573825,1 | wasm: Change property window-name to window.name for title-bar | dev | qt/qtbase | Status: ABANDONED | 0 | 0 |