Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. List View Zooming
Forum Updated to NodeBB v4.3 + New Features

List View Zooming

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 2 Posters 1.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mh00023
    wrote on last edited by
    #1

    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.

    1. Any ideas about how to fix this?
    2. Do you think QML listview is the best way to implement a pdf-like renderer? If not, any other recommendations?

    Thanks!

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dasRicardo
      wrote on last edited by
      #2

      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.

      **Sorry for my english :)

      PLEASE ADD [SOLVED] TO YOUR THREAD TITLE IF IT'S SOLVED.**

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved