Results 1 to 2 of 2

Thread: from drilldown example

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2007
    Posts
    104
    Thanks
    22
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default from drilldown example

    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?

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: from drilldown example

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.