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. Checking if 2 shapes are overlapping no matter what shape in QML
Forum Updated to NodeBB v4.3 + New Features

Checking if 2 shapes are overlapping no matter what shape in QML

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 515 Views
  • 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.
  • B Offline
    B Offline
    Bren2468
    wrote on last edited by
    #1

    Hello everyone,
    I am developing an application that requires detection of whether 2 shapes overlap in QML. I have found guides on how to do this for rectangles (easy) and circles (a bit harder), but I need it to work for any shape, including rotated rectangles, ellipses and custom path-defined shapes. Is this possible by anyone's knowledge or will I have to do develop something myself? I was thinking of testing with co-ordinates inside a given shape with childAt() on the parent of the other object, but this could be tricky when dealing with shapes with non-vertical or horizontal sides. Thanks for any help!

    ODБOïO 1 Reply Last reply
    0
    • B Bren2468

      Hello everyone,
      I am developing an application that requires detection of whether 2 shapes overlap in QML. I have found guides on how to do this for rectangles (easy) and circles (a bit harder), but I need it to work for any shape, including rotated rectangles, ellipses and custom path-defined shapes. Is this possible by anyone's knowledge or will I have to do develop something myself? I was thinking of testing with co-ordinates inside a given shape with childAt() on the parent of the other object, but this could be tricky when dealing with shapes with non-vertical or horizontal sides. Thanks for any help!

      ODБOïO Offline
      ODБOïO Offline
      ODБOï
      wrote on last edited by
      #2

      Hi
      @Bren2468
      i would use qml-box2d

      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