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. [solved] image cropping
Forum Updated to NodeBB v4.3 + New Features

[solved] image cropping

Scheduled Pinned Locked Moved QML and Qt Quick
4 Posts 3 Posters 11.3k 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.
  • N Offline
    N Offline
    nhojyer07
    wrote on last edited by
    #1

    Is this possible with QML? The closest thing I can find is PreserveAspectCrop but I need to crop the image anywhere I like.

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

      You can put Image in Rectangle and set Rectangle's clip property to true. All you need is to properly position Image with x and y properties.

      1 Reply Last reply
      1
      • N Offline
        N Offline
        nhojyer07
        wrote on last edited by
        #3

        Got it. Thanks for the suggestion.

        1 Reply Last reply
        0
        • B Offline
          B Offline
          bluestreak
          wrote on last edited by
          #4

          You're the man! Thanks!

          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