thanks.
could you show me how to use the update() member function(to paint a QImage to my custom widget area)?
it seems like no examples available....
now i use this method:
void WidgetVideoArea
::paintEvent(QPaintEvent*pPaintEvent
) {
if(repaintme)
{
target.setX(0);
target.setY(0);
target.setWidth(width());
target.setHeight(height());
painter.begin(this);
painter.drawImage(target,image);
painter.end();
repaintme = false;
}
}
void WidgetVideoArea::paintEvent(QPaintEvent*pPaintEvent)
{
if(repaintme)
{
target.setX(0);
target.setY(0);
target.setWidth(width());
target.setHeight(height());
painter.begin(this);
painter.drawImage(target,image);
painter.end();
repaintme = false;
}
}
To copy to clipboard, switch view to plain text mode
Bookmarks