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. Qt Quick PinchHandler scale bounds don't work
Forum Updated to NodeBB v4.3 + New Features

Qt Quick PinchHandler scale bounds don't work

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 136 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.
  • G Offline
    G Offline
    Grigos
    wrote on last edited by Grigos
    #1

    I try to use PinchHandler in QtQuick 2.15 (macOS). But properties minimumScale and maximumScale doesn't work properly. The target's Item scale is going out of bounds each time.

    Any ideas how to make it work? Here's code sample:

    import QtQuick 2.15
    
    Item {
        Rectangle{
            color: "blue"
            anchors.fill: parent
            Rectangle{
                x: 10
                y: 10
                height: 10
                width: 10
                PinchHandler{
                    minimumScale: 0.5
                    maximumScale: 2
    
                }
            }
        }
    }
    
    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