Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.7.4, 4.8.0, 4.8.x
-
None
-
Ubuntu Linux 11.04
Qt SDK 1.1.2, Qt 4.7.3 and 4.8.0
Harmattan SDK Qt 4.7.4
-
7253fe0cb58699d911f7f5b2dca28dd7182b1ef9
Description
While trying to implement a full-screen swipe-like interface in my media player using nested, strictly vertically scrolling views contained within one main view with horizontal moving direction, I am experiencing erroneous mouse event handling after Qt version 4.7.3.
I have attached a simplified test case that reproduces the problem in Qt version 4.7.4 and up. Here are the steps:
1. Double-click one of the items in the grid view (e.g. 50);
2. The main view will jump to the list view where the clicked-on index is the current item and highlighted;
3. Dragging/flicking the list view will work as expected;
4. Flick right so the main view moves back to grid view;
5. Repeat steps 1. and 2. with a different start index in the grid view (e.g. 100);
6. Starting a drag or flick on the list view will have the following effect: The list's view port jumps to the previous contentY position and the view remains static and its content will not move even though we are still dragging.
I tested these steps in 4.7.3 where everything is working as expected. I also tested with 4.7.4 on the N950 / Harmattan and with the preview release of 4.8.0 on the desktop which both expose the erroneous behavior. I am still trying to find a workaround. In the test case you will find different approaches to handle the mouse events at different levels in the object hierarchy, unfortunately to no avail.