Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Using rotation on a Flickable item
Qt 6.12 LTS is out! See what's new in the release blog

Using rotation on a Flickable item

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 1 Posters 3.0k 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    Hi,

    I'm using a flickable with an image inside it:

    @
    Flickable {
    id: flick
    anchors.fill: parent
    flickableDirection: Flickable.HorizontalAndVerticalFlick

    Image {
    anchors.centerIn: parent
    id: image
    source: "anImage.png"
    width: flick.contentWidth
    height: flick.contentHeight
    }
    }
    @

    This works just fine and the image can be flicked properly around the screen.

    If I set the rotation property on the flickable. For example setting it like this:

    @
    flick.rotation = 90
    @

    Makes the image rotate 90 degrees properly. However now to my problem. When the image is rotated for example 90 degrees the "borders" for the flickable does not change according to the rotation. So I cannot flick around my image properly anymore instead it stops at the original "borders" so to speak. Am I missing some magic setting when doing my rotation or something else?

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      To follow up on my problem. I tried to rotate the image in the Flickable instead and even setting the Flickable.contentWidth/Height. The weird thing is it seems that the contentWidth and Height are updated in both cases (rotating either the Flickable or the Image inside it) showing the new sizes. It's just the flickable boundaries that are not properly updated.

      Is this a bug or am I missing something?

      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
      • Unsolved