QScrollArea in Qml: Flickable + QQuickPaintedItem
问题 I'm trying to realize something similiar to QScrollArea (in widgets world) with the help of Qml. I decided to probe Flickable plus QQuickPaintedItem based item (named Drawer in my case): Flickable { ... onContentXChanged(): { drawer.update() } Drawer { id: drawer ... } Drawer's render target is set to FrameBufferObject . Its paint function looks like this: void Drawer::paint(QPainter *painter) { // Some function to compute rect which is needed to be redrawn QRect updateRect =