//override
{
painter
->setPen
(QColor(200,
100,
50));
painter->drawPixmap(boundingRect().x(), boundingRect().y(), boundingRect().width(), boundingRect().height(), this->pixmap());
painter->drawRect(this->pos().x(), this->pos().y(), this->boundingRect().width(), this->boundingRect().height());
}
//override
void AnimatableItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
{
painter->setPen(QColor(200,100,50));
painter->drawPixmap(boundingRect().x(), boundingRect().y(), boundingRect().width(), boundingRect().height(), this->pixmap());
painter->setBrush(QBrush(QColor(0,0,0)));
painter->drawRect(this->pos().x(), this->pos().y(), this->boundingRect().width(), this->boundingRect().height());
}
To copy to clipboard, switch view to plain text mode
Bookmarks