mirror of
https://github.com/wang-bin/QtAV.git
synced 2026-10-28 19:16:48 +08:00
QGraphicsItem::update() may not cause a redraw
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
******************************************************************************/
|
||||
|
||||
#include <QtAV/GraphicsItemRenderer.h>
|
||||
#include <QGraphicsScene>
|
||||
#include <QtGui/QPainter>
|
||||
|
||||
namespace QtAV {
|
||||
@@ -33,7 +34,8 @@ GraphicsItemRenderer::~GraphicsItemRenderer()
|
||||
int GraphicsItemRenderer::write(const QByteArray &data)
|
||||
{
|
||||
int s = ImageRenderer::write(data);
|
||||
update();
|
||||
scene()->update(sceneBoundingRect());
|
||||
//update(); //does not cause an immediate paint. my not redraw.
|
||||
return s;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user