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 342 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.
  • S Offline
    S Offline
    Samuel Bachorik
    wrote on 29 Jul 2021, 11:54 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

    A 1 Reply Last reply 29 Jul 2021, 13:20
    0
    • S Samuel Bachorik
      29 Jul 2021, 11:54

      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

      A Offline
      A Offline
      artwaw
      wrote on 29 Jul 2021, 13:20 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

      1/2

      29 Jul 2021, 11:54

      • Login

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