PDA

View Full Version : from drilldown example



hgedek
3rd August 2007, 12:42
I need showing pictures scaling like drilldown example in qt documents.But I couldnt understand it well.
When I hover/pass from images they will get bigger then smaller.Will I only use scale-transformation techinuqes or is it more detailed?So How?

jpn
7th August 2007, 23:09
Which parts of the example did you not understand? The most interesting methods for you are:

ImageItem::hoverEnterEvent()
ImageItem::hoverLeaveEvent()
ImageItem::setFrame()

Hover event fires up a forward timeline and leave even fires up a backward timeline. The timeline is connected to aforementioned ImageItem::setFrame() which does the actual scaling.