[Qt-interest] Animating from inital opacity of zero

Jason H scorp1us at yahoo.com
Mon Feb 1 07:02:13 CET 2010


I am having some trouble getting my QGraphicsItem animation fade-ins to work. It seems that if initial opacity is zero, the them item is optimized out? I have a simple wrapper that gives properties to QGraphicsItems (like QGraphicsWidget, but not) by proxying the properties to the item. (Like QGraphicsObject, but it provides a much thorougher mapping, and wraps an existing item, like a QGraphicsRectItem)

When I start with 0 opacity, it doesn't show. When I loop it, and switch between windows on my desktop, or resize the window, I then see it, so I think it is a optimization bug. I am wondering if there is some flag I have to set?

When I set the opacity to 0.01 it works fine, but there is a ghost image.

Ideas?


      




More information about the Qt-interest-old mailing list