Results 1 to 3 of 3

Thread: Suggestions Requested

  1. #1
    Join Date
    Dec 2014
    Posts
    49
    Thanks
    6
    Thanked 3 Times in 3 Posts
    Qt products
    Qt5 PyQt3 PyQt4
    Platforms
    Windows

    Default Suggestions Requested

    Given a button a that when clicked displays a menu of Actions...

    Action A
    Action B
    Action C
    ...
    Action N

    when clicking on any action, i want to slide in from the right a panel of widgets. This panel should then have the ability to return to the top level Actions.

    I have seen some examples of a sliding menu, however, this isn't quite what i want/need. The only visible area is a 300x300 area, so the panels that slide in, are not visible, until they slide in, and while they slide in, the top level menu slides out of this view rectangle to the left.

    any suggestions ?

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,315
    Thanks
    314
    Thanked 870 Times in 857 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Suggestions Requested

    I would create the panel of widgets inside a QWidget / QFrame or something like that, set its position to offscreen to the right, then use a QPropertyAnimation to animate the position to slide it in. At the same time, slide the top level menu out to the left by the same amount using another animation on its position property.

    This panel should then have the ability to return to the top level Actions.
    Not sure what you mean by this. If you mean that clicking on a widget within the panel causes the panel to slide back out again, then use a similar animation in a slot connected to the click to slide it back out and then hide it when the animation finishes, and a parallel animation to slide the top level menu back in.
    Last edited by d_stranz; 8th February 2015 at 21:25.

  3. #3
    Join Date
    Dec 2014
    Posts
    49
    Thanks
    6
    Thanked 3 Times in 3 Posts
    Qt products
    Qt5 PyQt3 PyQt4
    Platforms
    Windows

    Default Re: Suggestions Requested

    Thanks, that is what I was thinking, just looking for some validation, and to make sure I wasn't missing something.

    And yes, concerning the top level quote, that means to be able to slide back yo the original position.

Similar Threads

  1. Requested font family failed
    By wirasto in forum Qt Programming
    Replies: 0
    Last Post: 20th November 2010, 04:30
  2. ActiveQt : requested control could not be instantiated
    By zirconius in forum Qt Programming
    Replies: 2
    Last Post: 9th April 2010, 13:27
  3. QTcpServer : retrieve the requested URL
    By fitzy in forum Qt Programming
    Replies: 4
    Last Post: 27th October 2009, 14:30
  4. QT thread classes quidance requested
    By bajarangi in forum Qt Programming
    Replies: 0
    Last Post: 26th May 2009, 13:56
  5. Custom Model Advice Requested
    By mclark in forum Qt Programming
    Replies: 3
    Last Post: 18th September 2008, 16:26

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.