
Originally Posted by
high_flyer
I did this with Qt3, but Qt4 is so different that its not aplicable any more.
The general rule is that you should try to minimize Qt's conversion functions as much as possible.
I would try something along the lines of:
- load the buffer to a QImage
- Set QBrush as texture with the QImage
- use QPainter::fillRect() with the texture brush.
I didn't try this, but I'd expect it to be fast enough.
Hi, high_flyer,
Thank you for your reply 
I tried this way,
QPainter *painter;
painter = new QPainter();
painter->fillRect(QRect(0,0,width,height),QBrush::QBrush(capture_frame));
To copy to clipboard, switch view to plain text mode
where capture_frame is QImage object,
there was no error in compile but no result neither.
Am I doing it right way?
Bookmarks