Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.5.5-1, 6.7.0, 6.9
-
Ubuntu 22.04 in VMware Workstation 16.2.4, Windows 10 host
Description
Code
import QtQuick import QtQuick.Controls.Basic Window { id: outerWindow width: 800 height: 600 visible: true color: "orange" Row { anchors.bottom: parent.bottom TextField {} Button { text: "Click Me" onClicked: console.log("Outer button clicked") } } WindowContainer { window: Window { width: 640 height: 480 visible: true color: "cyan" Row { anchors.bottom: parent.bottom TextField {} Button { text: "Click Me" onClicked: console.log("Inner button clicked") } } } } }
Steps to reproduce
- Run the code above
- Click the 2 Buttons
- Try to enter text into the 2 TextFields
Outcomes
- (XCB and Wayland) Both buttons can be clicked (Expected)
- (XCB only) Both TextFields can receive text input (Expected)
- (Wayland) Only the "outer" TextField can receive text input. Clicking the "inner" TextField does not give it the coloured border to indicate focus, and typing does not input anything (Not expected)
Notes
The above example uses the new Window.parent property introduced in Qt 6.7. However, older versions of Qt can also call QQuickWindow::setParent() from C++ (edit: Updated the example to use the WindowContainer property which has replaced the preliminary 'parent' property in 6.8)
Attachments
Issue Links
- relates to
-
QTBUG-117733 Wayland surface does not have initial focus
- Closed
- resulted in
-
QTBUG-130754 [Windows] Issues with keyboard focus when embedding window
- In Progress