Results 1 to 4 of 4

Thread: Animating "any" widget?!?

  1. #1
    Join Date
    Mar 2006
    Posts
    172
    Thanks
    30
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Lightbulb Animating "any" widget?!?

    Qt4 is equipped with a powerful paint engine. Now can widgets like Buttons, Custom widgets and as well the whole widget window be animated??

    eg:
    1. Button rotating when clicked,
    2. Widget's top level window shearing on minimization etc...

    What are the limitations of Animations in Qt4?

    Thanks.

    Nupul

  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: Animating "any" widget?!?

    You could adapt some ideas from Qt sources: src/gui/widgets/qeffects.*
    There isn't rotation, but fading and scrolling, though. But after understanding the principles used in QEffects (which is a private class of Qt), it shouldn't be too hard to implement a rotating effect..
    J-P Nurmi

  3. #3
    Join Date
    Mar 2006
    Posts
    172
    Thanks
    30
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Animating "any" widget?!?

    Quote Originally Posted by jpn
    You could adapt some ideas from Qt sources: src/gui/widgets/qeffects.*
    This path doesn't exist in my Qt installation dir and nor did I find it in the assistant!
    and nor did i find any files resembling this name....could you send me a link or an attachment!

  4. #4
    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: Animating "any" widget?!?

    Quote Originally Posted by nupul
    This path doesn't exist in my Qt installation dir and nor did I find it in the assistant!
    and nor did i find any files resembling this name....could you send me a link or an attachment!
    It's a private Qt class which is not intended to be used.

    Check inside the installation package
    qt-x11-*-src-4.1.2.tar.gz: qt-x11-*-src-4.1.2\src\gui\widgets
    J-P Nurmi

Similar Threads

  1. QDockWidget inside another widget in the center?
    By Antebios in forum Qt Programming
    Replies: 1
    Last Post: 16th February 2010, 07:06
  2. Widget Focus
    By navi1084 in forum Qt Programming
    Replies: 6
    Last Post: 29th September 2008, 10:22
  3. Playbutton functionality
    By uchennaanyanwu in forum Qt Programming
    Replies: 5
    Last Post: 31st July 2008, 22:29
  4. How to Open & Close a Widget ?!!
    By Fatla in forum Qt Programming
    Replies: 6
    Last Post: 13th June 2008, 20:39
  5. Tricky problem with ARGB widget / UpdateLayeredWindow
    By nooky59 in forum Qt Programming
    Replies: 3
    Last Post: 21st February 2008, 10:35

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.