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. Qt c++ create photoshop like application
Forum Updated to NodeBB v4.3 + New Features

Qt c++ create photoshop like application

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 341 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.
  • Samuel BachorikS Offline
    Samuel BachorikS Offline
    Samuel Bachorik
    wrote on last edited by Samuel Bachorik
    #1

    Hi I want to ask you if there is any way how to load image to Qt window like in photoshop, then create something like "tool" - some circle. I want to move with this circle with mouse and when I click I need to to something with all pixels in that circle. For example get values from this circle and change them.
    example -
    eaa869db-60d3-4848-8489-430029bd0bdc.jpg ef72072f-85af-490b-9eab-eec11259881d.jpg

    artwawA 1 Reply Last reply
    0
    • Samuel BachorikS Samuel Bachorik

      Hi I want to ask you if there is any way how to load image to Qt window like in photoshop, then create something like "tool" - some circle. I want to move with this circle with mouse and when I click I need to to something with all pixels in that circle. For example get values from this circle and change them.
      example -
      eaa869db-60d3-4848-8489-430029bd0bdc.jpg ef72072f-85af-490b-9eab-eec11259881d.jpg

      artwawA Offline
      artwawA Offline
      artwaw
      wrote on last edited by artwaw
      #2

      @Samuel-Bachorik the simplest, I think, is to make QGraphicsView in UI, then on the backend QGraphicsScene that would be rendered in the view.
      Images can be loaded as QGraphicsPixmapItem.
      Brush/cursor can be of QGraphicsEllipseItem.

      There would be some work involved to link movements of the mouse with ellipse item but not much.

      Documentation: https://doc.qt.io/qt-5/qgraphicsview.html for basic principle; the view, scene and graphic items are all linked in there.

      This solution would also prove useful when you come to coding the interactions between "the cursor" and "the photos".

      For more information please re-read.

      Kind Regards,
      Artur

      1 Reply Last reply
      3

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved