Results 1 to 2 of 2

Thread: QGraphicsItem does not update

  1. #1
    Join Date
    Dec 2008
    Location
    Istanbul, TURKEY
    Posts
    537
    Thanks
    14
    Thanked 13 Times in 13 Posts
    Qt products
    Qt4
    Platforms
    Windows Android

    Default QGraphicsItem does not update

    Hi,

    I have a QGraphicsItem. In this QGraphicsItem, I have some other QGraphicsRectItem and QGraphicsLineItem. So the QGraphicsItem is the parent of QGraphicsRectItem and QGraphicsLineItem. My problem appears when I attempt to redraw upon a position change in the parent. Once I change the position and update, the parent item does not appear!

    Regards

  2. #2
    Join Date
    Dec 2008
    Location
    Istanbul, TURKEY
    Posts
    537
    Thanks
    14
    Thanked 13 Times in 13 Posts
    Qt products
    Qt4
    Platforms
    Windows Android

    Default Re: QGraphicsItem does not update

    Hi,

    I solved the problem. by the way I noticed that setPos calls it's own update or something like that.

    Regards

Similar Threads

  1. destruction of QGraphicsItem
    By killkolor in forum Qt Programming
    Replies: 2
    Last Post: 5th December 2009, 10:31
  2. Qt Update project - Opinions wanted
    By pvdk in forum Qt Programming
    Replies: 0
    Last Post: 8th November 2008, 08:41
  3. QGraphicsItem force boundingRect
    By bunjee in forum Qt Programming
    Replies: 0
    Last Post: 27th September 2008, 16:49
  4. QModelView update
    By bunjee in forum Qt Programming
    Replies: 2
    Last Post: 22nd April 2008, 22:02
  5. QPainter update()
    By csvivek in forum Qt Programming
    Replies: 5
    Last Post: 24th March 2008, 09:42

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.