How to repaint QDeclarativeItem?
QML and Qt Quick
2
Posts
1
Posters
2.2k
Views
1
Watching
-
Hi, i'm creating a qml widget in c++, i've overrided the paint method like this:
@void MyItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *options, QWidget *widget){
painter->drawImage(0, 0, _qImage.scaledToWidth(this->width()));
}@
inside MyItem i've a timer that changes the image, how can i force the repainting of the item at every timer event?