PDA

View Full Version : Vertical Flickables in horizontal panning item



petru.motrescu
2nd April 2012, 22:16
Hi,

I want 3 Flickables inside an horizontal pannable item, pretty much identical to the way the home screens work in Nokia N9.
In QML it is not possible since the MouseArea responsible of the horizontal panning will eat all mouse events.
From my quick tests I conclude it is not possible to have a MouseArea that deals with the X axis and another with the y axis.
Also, I was thinking maybe I could control the Flickable manually. Well that seems impossible too.

Is it actually possible at all in QML to achieve this? If no, could I do it from C++ somehow? Something like catch the mouse events of the QML scene, check the drag orientation, change the scene item target? Maybe I want too much :)

Thanks in advance for your time!

Petru