List View Zooming
mh00023 last edited by
Hello, I'm trying to make a lightweight pdf-like viewer based on a proprietary format. I'm relatively new to Qt (strict hobby), and I was thinking of using list view to render each page. My issue is that I'm having difficulty with zooming feature on lsit view. I thought maybe just scaling the contentitem will be fine, but this seems to change the area by which the view registers mouse events. For instance, scaling by 0.5, I can only scroll if my mouse is over a smaller rectangle, and not the whole listview item.
- Any ideas about how to fix this?
- Do you think QML listview is the best way to implement a pdf-like renderer? If not, any other recommendations?
dasRicardo last edited by
Hmm, i think as main container is "StackView":http://qt-project.org/doc/qt-5/qml-qtquick-controls-stackview.html a good element. For the pages use a "flickable container":http://qt-project.org/doc/qt-5/qml-qtquick-flickable.html with a child item to render the content. Change the size of the child item for zooming should have a direct effect to the flickable element for scrolling.