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?
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?
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.
J-P Nurmi
Bookmarks