Details
-
Bug
-
Resolution: Invalid
-
P3: Somewhat important
-
5.15.8, 6.3.0 Beta2
-
Windows 10 21H2, MSVC 2019 x64
-
-
79a11470f3 (qt/qtbase/dev) ef75047a63 (qt/qtbase/6.4) ef75047a63 (qt/tqtc-qtbase/6.4) b90b556957 (qt/qtbase/6.3) b90b556957 (qt/tqtc-qtbase/6.3)
Description
Start Windows Narrator ([Ctrl][Win][Enter]), then build and run this code:
#include <QApplication> #include <QPushButton> #include <QMessageBox> static void launchDialog() { QMessageBox::warning(nullptr, qApp->applicationName(), "This is dangerous. Proceed?", QMessageBox::Yes | QMessageBox::No); } int main(int argc, char *argv[]) { QApplication a(argc, argv); launchDialog(); QPushButton button("Click me"); button.show(); QObject::connect(&button, &QPushButton::clicked, &launchDialog); return a.exec(); }
What happens
- At startup, the first QMessageBox pops up. Windows Narrator reads out the body text ("This is dangerous. Proceed?") then focusses on the QButtonGroup and says "Group". It does not read the text of the button that receives focus ("Yes").
- When you click "OK" the QMessageBox is dismissed and the "Click Me" button appears.
- When you click "Click Me", another instance of the QMessageBox appears. Windows Narrator reads the button with focus ("Yes"), then stops. It does not read the QMessageBox body text and it doesn't say "Group".
What should happen instead
- In Step #1, Windows Narrator should read "Yes" at the end.
- In Step #3, Windows Narrator should read the body text at the start.
Attachments
Issue Links
- is duplicated by
-
QTBUG-105735 Focus is not set to a child widget when a modal is open
-
- Closed
-