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. Flickable brings image back to the original position
Qt 6.11 is out! See what's new in the release blog

Flickable brings image back to the original position

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 1 Posters 3.2k 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.
  • S Offline
    S Offline
    sanj1981
    wrote on last edited by
    #1

    Hi, I'm trying to use 'flickable' to move image inside the screen. I can move it, but when I take finger out it came back to the original position. How can I keep the image in the new position ? Thank you.

    @Flickable {
    anchors.fill: parent
    width: parent.width; height: parent.height
    contentWidth: selected.width; contentHeight: selected.height

             Image {
                 id: selected
                 source: "selected_photo.png"
          rotation:270
    
                        }
    }@
    
    1 Reply Last reply
    0
    • S Offline
      S Offline
      sanj1981
      wrote on last edited by
      #2

      Ok. I solved the problem making content width and height higher than image width and height.

      But now the problem is it only moves left and up. I can't move it to right or down, it just comes back to the original location.

      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