[Qt-interest] how to speed up code?

Lars Amsel lars.amsel at signalion.com
Thu Jul 9 10:10:24 CEST 2009


Igor,

Igor Sobinov wrote:
> I develop application that get images from web camera and show it in Qt
> widget.
 >
> [snipped code]
 >
> actually camera sends 25 frames per second, but because of very slow image
> converion operation real FPS is 1-2  ;(
> 
> Is any way to improve perfomance of this code?

Conversion to QPixmap is slow. Did you try to use the QGLWidget? Here's a 
short sample:
http://www.qtforum.org/article/34/how-to-draw-an-qimage-using-opengl.html

regards

Lars



More information about the Qt-interest-old mailing list