diff --git a/tests/manual/qcursor/allcursors/mainwindow.cpp b/tests/manual/qcursor/allcursors/mainwindow.cpp index f2fa438330b..ecd2c4d9089 100644 --- a/tests/manual/qcursor/allcursors/mainwindow.cpp +++ b/tests/manual/qcursor/allcursors/mainwindow.cpp @@ -51,6 +51,9 @@ void MainWindow::keyPressEvent(QKeyEvent* event) { QPoint off(0, 0); switch (event->key()) { + case Qt::Key_Q: + qApp->quit(); + break; case Qt::Key_Up: off.setY(-4); break;