Originally Posted by
jpn
Do you, by any chance, manipulate rendered images somehow during every paint event?
I just repaint bitmaps without any transformations. For example:
{
painter.drawPixmap(0, 0, *background);
painter.setPen(pen);
painter.setBrush(brush);
painter.drawRect(xs, yd, is - xs, js - yd);
}
void Slider::paintEvent(QPaintEvent *)
{
QPainter painter(this);
QBrush brush(S_COLOR);
QPen pen(S_COLOR);
painter.drawPixmap(0, 0, *background);
painter.setPen(pen);
painter.setBrush(brush);
painter.drawRect(xs, yd, is - xs, js - yd);
}
To copy to clipboard, switch view to plain text mode
Bookmarks