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. QGraphicsPathItem eraser / Splitting QGraphicsPathItem into two new ones
Qt 6.11 is out! See what's new in the release blog

QGraphicsPathItem eraser / Splitting QGraphicsPathItem into two new ones

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 310 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
    DonHexagon
    wrote on last edited by
    #1

    Hello!

    I am working on an application using Qt5 in which you can free hand draw arbitrary shapes in vector graphics, move them and and partially remove parts (just like an eraser in Microsoft paint).

    I draw the shapes in QGraphicsScene by adding QGraphicsPathItem and move them using the QGraphicsItem::ItemIsMovable flag. The question of the eraser remains.

    Has anyone faced the task of partial removal of QGraphicsPathItem? Especially in a situation when we divide the figure into two (or more) parts with an eraser and these should become separate new QGraphicsPathItem? Is it possible to implement it?

    Thanks for any help!

    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