diff -r ef0373b55136 -r 758a864f9613 tests/auto/gestures/tst_gestures.cpp --- a/tests/auto/gestures/tst_gestures.cpp Fri Sep 17 08:34:18 2010 +0300 +++ b/tests/auto/gestures/tst_gestures.cpp Mon Oct 04 01:19:32 2010 +0300 @@ -395,7 +395,12 @@ { GestureWidget widget; widget.grabGesture(CustomGesture::GestureType, Qt::DontStartGestureOnChildren); + widget.show(); + QTest::qWaitForWindowShown(&widget); + CustomEvent event; + event.hotSpot = widget.mapToGlobal(QPoint(5,5)); + event.hasHotSpot = true; sendCustomGesture(&event, &widget); static const int TotalGestureEventsCount = CustomGesture::SerialFinishedThreshold - CustomGesture::SerialStartedThreshold + 1;