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?

how to insert an element inbetween to QGraphicsPathitem?

Scheduled Pinned Locked Moved Unsolved General and Desktop
qt5
2 Posts 2 Posters 283 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 1 Jun 2021, 06:11 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?

    J 1 Reply Last reply 1 Jun 2021, 09:45
    0
    • S Selvajothi
      1 Jun 2021, 06:11

      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?

      J Online
      J Online
      JonB
      wrote on 1 Jun 2021, 09:45 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

      1/2

      1 Jun 2021, 06:11

      • 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