Results 1 to 5 of 5

Thread: animating a toolbar??!?

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

    Red face animating a toolbar??!?

    Is it possible to animate the buttons of the toolbar on a mouse-hover event? eg.
    1. like having the toolbar buttons magnifying the buttons and THEN displaying the tooltip below it?

    2. Giving a special divit on the toolbar, which when clicked would "slide" or animate the toolbar out of view or reappear again?

    thanks!!

    nupul


  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,364
    Thanks
    3
    Thanked 5,012 Times in 4,791 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: animating a toolbar??!?

    Not out of the box. The first one should be easily implementable using additional widgets, the second one is harder, but still should be possible to implement without too much effort. Just use timers and repaint your widget with different frames of animation (for example using an intermediate Pixmap as painting base).

  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 a toolbar??!?

    wysota wrote:
    "The first one should be easily implementable using additional widgets, "

    can you please elaborate...I know it is possible, the question is how????



    Nupul

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

    Default Re: animating a toolbar??!?

    Also if you look at the KDE panel it has a divit on the right side, which when pressed slides the panel out of view; and on pressing again makes it visible....

    I wish to achieve something similar as my toolbar will be on the desktop!!

    Nupul

  5. #5
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,364
    Thanks
    3
    Thanked 5,012 Times in 4,791 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: animating a toolbar??!?

    Quote Originally Posted by nupul
    can you please elaborate...I know it is possible, the question is how????
    Making a hover behaviour is easy by using appropriate events and the magnifing can be achieved by showing an additional widget (like a label) with the magnified image floating over the base one. I don't think there is much to explain here. You should just try it.

Similar Threads

  1. Toolbar in dockwidget
    By AD in forum Qt Programming
    Replies: 7
    Last Post: 2nd October 2008, 14:34
  2. unable to hide combobox or spinbox in toolbar
    By Sandip in forum Qt Programming
    Replies: 1
    Last Post: 22nd July 2008, 11:52
  3. Create a Toolbar on a Subclassed Textedit?
    By c_07 in forum Qt Programming
    Replies: 5
    Last Post: 12th October 2007, 18:17
  4. Adding a toolbar to a TableWidget
    By Walter in forum Qt Programming
    Replies: 2
    Last Post: 1st July 2007, 21:13
  5. Initialise toolbar in a different area
    By georgie in forum Qt Programming
    Replies: 4
    Last Post: 4th May 2006, 03:49

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.