diff --git a/tests/auto/gui/kernel/qwindow/tst_qwindow.cpp b/tests/auto/gui/kernel/qwindow/tst_qwindow.cpp index a860793ce4..90c96b4030 100644 --- a/tests/auto/gui/kernel/qwindow/tst_qwindow.cpp +++ b/tests/auto/gui/kernel/qwindow/tst_qwindow.cpp @@ -596,6 +596,8 @@ void tst_QWindow::touchCancelWithTouchToMouse() void tst_QWindow::orientation() { + qRegisterMetaType("Qt::ScreenOrientation"); + QWindow window; window.setGeometry(80, 80, 40, 40); window.create();