[Qt-interest] QMouseEventTransition
Colin Kern
colin.kern at gmail.com
Sun Dec 13 21:26:39 CET 2009
On Sun, Dec 13, 2009 at 12:12 AM, Colin Kern <colin.kern at gmail.com> wrote:
> I'm having trouble figuring out how to use the QMouseEventTransition
> class. I'm trying to create a widget that gets bigger when hovered
> over, and then goes back to it's normal size when the mouse moves
> away. I've gotten it working by implementing the hoverEnter and
> hoverLeave event handlers. Now I'm trying to do the same thing using
> a state machine instead, but I can't get it to work.
I have it working now using singal transitions. I just have my
hoverEnterEvent and hoverLeaveEvent emit signals that cause the
transitions. I'd still like to get this working using the
QMouseEventTransition, though, since that will be less code and
probably more readable.
Colin
More information about the Qt-interest-old
mailing list