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. how to insert an element inbetween to QGraphicsPathitem?
Forum Update on Monday, May 27th 2025

how to insert an element inbetween to QGraphicsPathitem?

Scheduled Pinned Locked Moved Unsolved General and Desktop
qt5
2 Posts 2 Posters 287 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.
  • S Offline
    S Offline
    Selvajothi
    wrote on last edited by
    #1

    I have drawn a QGraphicspathitem with five elements. Now I want to add/insert an element inbetween so that the QGraphicsPathitem will have six element .

    Do we have any possible solutions for this?

    JonBJ 1 Reply Last reply
    0
    • S Selvajothi

      I have drawn a QGraphicspathitem with five elements. Now I want to add/insert an element inbetween so that the QGraphicsPathitem will have six element .

      Do we have any possible solutions for this?

      JonBJ Online
      JonBJ Online
      JonB
      wrote on last edited by
      #2

      @Selvajothi
      I know nothing about this, but since you have received no other reply.....

      Since I do not see any "insert item" in QGraphicsPathItem Class, but I do see void QGraphicsPathItem::setPath(const QPainterPath &path)

      Sets the item's path to be the given path.

      See also path().

      are you supposed to use QPainterPath QGraphicsPathItem::path() const to retrieve the current path (if you need that), manipulate to insert your extra element, and pass it back to QGraphicsPathItem::setPath() to reset the path as a whole?

      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