Results 1 to 3 of 3

Thread: is it possible to animate sliding widgets on show/hide

  1. #1
    Join Date
    Mar 2007
    Posts
    16
    Thanks
    1
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11

    Default is it possible to animate sliding widgets on show/hide

    Hi, I was wondering if there is a nice clean way to have a widget slide in/out when you show/hide it. Some sort of animated transition. I haven't been able to find anything through searching so far.

    Thanks.

  2. #2
    Join Date
    Jan 2006
    Location
    Alingsås, Sweden
    Posts
    437
    Thanks
    3
    Thanked 39 Times in 39 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: is it possible to animate sliding widgets on show/hide

    The QTimeLine class is used for this. You will still have to add code to perform the actual animation, but it is a start.

  3. #3
    Join Date
    Jan 2006
    Location
    travelling
    Posts
    1,116
    Thanks
    8
    Thanked 127 Times in 121 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: is it possible to animate sliding widgets on show/hide

    Quote Originally Posted by discostu View Post
    Hi, I was wondering if there is a nice clean way to have a widget slide in/out when you show/hide it. Some sort of animated transition. I haven't been able to find anything through searching so far.
    The only limits to graphical programming are :
    • your imagination
    • the power of your computer
    I'm pretty sure you can craft what you want but I doubt someone can do it for you without some more informations... I suggest you to have a look at Qt sources and get some inspiration from the animated showing/hiding of dock widgets (since Qt 4.2). I think you should find this code in a file named qmainwindow.cpp or qmainwindowlayout.cpp
    Current Qt projects : QCodeEdit, RotiDeCode

Similar Threads

  1. Performance in hiding/showing widgets
    By Paalrammer in forum Newbie
    Replies: 12
    Last Post: 14th February 2007, 18:57
  2. Replies: 11
    Last Post: 7th July 2006, 13:09
  3. Creating Widgets
    By hylke in forum Qt Programming
    Replies: 2
    Last Post: 5th February 2006, 08:37

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.