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. Pincharea : snap to parent edge
Forum Update on Monday, May 27th 2025

Pincharea : snap to parent edge

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 607 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.
  • J Offline
    J Offline
    jeff-beu
    wrote on last edited by
    #1

    Hello,

    How would one go about implementing a rectangle, with a pincharea, that snaps to the parent rectangle edges?

    I an very new to QT(2 weeks) and I have implementation that uses a lot of linear algebra to calculate positions after the child rectangle is scaled and rotated, find snap to coordinates, inverse of scale and rotation on the coordinates to get new properties then modify the child with new properties.

    Is there anything built in that could handle this without all the work of calculating the coordinates of a scaled and rotated rectangle?

    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