Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [no longer relevant]Mapping coordinates with QTransform
Forum Updated to NodeBB v4.3 + New Features

[no longer relevant]Mapping coordinates with QTransform

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 534 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.
  • M Offline
    M Offline
    muldjord
    wrote on last edited by
    #1

    UPDATED: An answer is no longer needed. Didn't find the solution, but the case for the problem has perished. If anyone wants to answer, feel free to do so, but keep in mind that I no longer need the answer. Thank you.

    I need to do the following:

    1. Create a QImage
    2. Mark a coordinate set x,y in the QImage and call it x1 and y1
    3. Rotate the QImage using a QTransform
    4. Find the transformed x1 and y2 in the rotated image and call the new coordinates x1new and y1new.

    I've been looking at QTransform map, but I'm having a hard time figuring out what it actually does, and when I use it, it certainly doesn't seem to find the same spot in the image. Can anyone explain to me what I need to do? Do I need to define the m values for it to work? In my mind I'm thinking that the QTransform doesn't know about my QImage's dimensions, which would be a problem, right?

    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