optimizing widget painting.

Posted by yan bellavance on Stack Overflow See other posts from Stack Overflow or by yan bellavance
Published on 2010-06-10T19:12:03Z Indexed on 2010/06/10 19:12 UTC
Read the original article Hit count: 311

Filed under:

I am painting a widget and I want to optimize the process. Basically i will be sliding the image in the x direction and I only want to fill the newly exposed area. Is there a way to translate the pixels of a widget without calling update or using paintevent? I know of pixmaps and such but I am wondering If I can for example draw a pixmap once and then translate what I have drawn without having to paint anything else or draw pixmaps anymore.

© Stack Overflow or respective owner

Related posts about qt