Results 1 to 2 of 2

Thread: A problem of update() and paint() of QGraphicsScene in Qt 4.2.2

  1. #1
    Join Date
    Dec 2007
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default A problem of update() and paint() of QGraphicsScene in Qt 4.2.2

    I writed a inherited class of QGraphicsItem, say NewItem.
    and I implemented my own paint().

    I set a timer in my program and refresh all my NewItem objects by calling update() in QGrahpicsScene.

    The program is working well in Qt 4.2.3, but not in Qt 4.2.2(and I must use Qt 4.2.2 due to some other reason...). The NewItem's paint() is not called.

    It seems that 4.2.2 has some bugs in update() of QGraphicsScene, is there some way I can solve this problem?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: A problem of update() and paint() of QGraphicsScene in Qt 4.2.2

    Can we see the code?

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.