Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    Unsolved Qt c++ create photoshop like application

    General and Desktop
    2
    2
    132
    Loading More Posts
    • 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 Bachorik
      Samuel Bachorik last edited by 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

      artwaw 1 Reply Last reply Reply Quote 0
      • artwaw
        artwaw @Samuel Bachorik last edited by artwaw

        @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 Reply Quote 3
        • First post
          Last post