Results 1 to 2 of 2

Thread: Scrolling between two widgets

  1. #1
    Join Date
    Jan 2006
    Location
    Innsbruck, Austria
    Posts
    62
    Thanks
    10
    Thanked 7 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Scrolling between two widgets

    I have a configuration dialog more or less similar to the example in Qt (I'm using Qt 4.2.1). I'd like to add special effects to it and one of the ideas I've though of is scrolling between the different group of options when one of them is selected instead of simply switching to it. It would be something like this GIF:



    I could create a custom widget and use a QTimer but I've no idea how could I paint the widgets over the custom widget in an exact place to make the effect. I've also though of using QScrollArea/QScrollWidget but they don't provide any way to scroll to an exact pixel. Any ideas?

  2. #2
    Join Date
    Jan 2006
    Posts
    667
    Thanks
    10
    Thanked 80 Times in 74 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Scrolling between two widgets

    What you can rather do is, using QTimer decrease the height of the widget that you want to disappear and increase the height of the widget that you want to appear. In the end you can either delete the old widget or hide it.

Similar Threads

  1. QLogText & QLogTable : 2 widgets to display text log
    By fcoiffie in forum Qt-based Software
    Replies: 7
    Last Post: 28th April 2019, 07:52
  2. Replies: 11
    Last Post: 7th July 2006, 13:09
  3. Grabbing widget's background
    By jpn in forum Qt Programming
    Replies: 4
    Last Post: 14th May 2006, 07:58
  4. How to movable dock widgets?
    By becond in forum Qt Tools
    Replies: 3
    Last Post: 21st February 2006, 19:57
  5. 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.