According to Qt Documentation, " void QGraphicsItem::update ( const QRectF & rect = QRectF() ) " does not cause an immediate paint; instead it schedules a paint request that is processed by QGraphicsView after control reaches the event loop. Here is my code:
this->item->setPixmap( QPixmap::fromImage(*coloration->image) );// QGraphicsPixmapItem
this->item->update();
this->scene->update(); // QGraphicsScene
this->view->update(); // QGraphicsView
and the code is in a method that will be invoked every 100 milliseconds(and in which the coloration->image will change), but the Qt refuses to update the image every 100 milliseconds, and it only renders the final image. So, how could I paint the item immediately?