Now that Qt is hot and QGraphicsView is even hotter, I’m quite surprised that Trolls haven’t provided a good common component for kinetic panning. There are some existing demo codes like this FlickCharm in dojo examples, but the problem in FlickCharm is that it doesn’t work with QGraphicsWidgets. Please correct me, if I’m wrong. QML introduces a class called QmlGraphicsFlickable which is used for providing a kinetic scrolling for QML objects. Well this works for QML, but not directly for QGraphicsWidgets.
I wrote the first version of the PannableView for QTablet project about 1.5 year ago. My collegue Kypeli (Johan Paul) helped me by writing some of the algorithms for scrolling. There is a one video which I uploaded to youtube about a year ago. On that video I demonstrated the first version of the PannableView used by a home screen and by an application launcher of the QTablet. That demo ran quite well on N8X0. I thought that maybe I could improve it little bit and release it as a public component. Still, it’s not a perfect. It’s not even close to iPhone’s kinetic scrolling, but it’s better than nothing.
The video clip below demonstrates different ways how to use PannableView for example to make QGraphicsWebView pannable, how to create a simple slideshow and how it clips the area outside the PannableView’s borders. At first, all the demo apps are running on iMac and after that I’ll show how they run on N900. I accidentally ran all the demo apps on device with -graphicssystem opengl flags and it flipped all the images upside down. Nice bug in Qt.