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. For itemchange of QGraphicsLineItem
QtWS25 Last Chance

For itemchange of QGraphicsLineItem

Scheduled Pinned Locked Moved General and Desktop
itemchangeqgraphicslineitsetlinegraphicsitemcha
3 Posts 2 Posters 1.1k 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.
  • M Offline
    M Offline
    mameo
    wrote on last edited by
    #1

    When you run the setLine function of QGraphicsLineItem, not called is itemchange function .

    If you change the shape of the line in setLine function , Will it not be a itemchange?

    Either way there is to know that the shape has been changed in the setLine?

    1 Reply Last reply
    0
    • A Offline
      A Offline
      Asperamanca
      wrote on last edited by
      #2

      There is no way to be notified about a shape change. An attempt to add that notification was made once, but it proved complicated, and GraphicsView is only maintained, not extended anymore.

      Best solution in your case is probably to write your own line item. Then you have full control.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mameo
        wrote on last edited by
        #3

        Early answer Thank you .
        I try to implement their own line class .

        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