Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. PyQt How to make an image processing GUI?
Forum Updated to NodeBB v4.3 + New Features

PyQt How to make an image processing GUI?

Scheduled Pinned Locked Moved Unsolved Qt for Python
1 Posts 1 Posters 424 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.
  • D Offline
    D Offline
    darrenleeleelee1
    wrote on last edited by
    #1

    I am trying to make an image processing GUI.I need some function like image rotate, pen, ruler, protractor, and zoom in/out.
    79c3996c-32d8-4d18-b0fa-daa709ab7637-image.png
    I am now using QPainter drawpixmap to show the picture, and override mousePressEvent/mouseReleaseEvent/mouseMoveEvent to get my mouse locus.
    And here is the problem, when I rotate the coordinate was't change with rotate, my mouse click will be wrong. I use a Linear matrix to get what I really want.But I think my method is kind of stupid, I wonder whether there is a good way to deal with it, or a standard SOP to do this.
    Also I use a list to store all my ruler's line, is there a efficient way to manage this line draw by user. I want to delete it one by one, not all in one time(Now I can only delete them all in one time)

    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