Sliding QStackedWidget

328 views
Skip to first unread message

Ruchit Bhatt

unread,
May 9, 2017, 12:05:38 AM5/9/17
to Python Programming for Autodesk Maya
How to slide  QStackedWidget page with QEasingCurve ??
From one page to another with smooth animCurve.

Justin Israel

unread,
May 9, 2017, 1:25:36 AM5/9/17
to python_in...@googlegroups.com
On Tue, May 9, 2017 at 4:05 PM Ruchit Bhatt <ruchitinn...@gmail.com> wrote:
How to slide  QStackedWidget page with QEasingCurve ??
From one page to another with smooth animCurve.

QStackedWidget doesn't animated when it changes pages. It just changes the visible widget to be the current page.

In order to visually animate a page slide, you would have to have a widget that changes property values over time, via QPropertyAnimation, which can accept QEasingCurve as an option. A quick search shows some examples of what it would take to extend QStackedWidget to support animation between the current widget changes:

QML may have a lot more animation options out-of-the-box since it was initially catering to mobile/kiosk kinds of applications.
 

--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/505ca8f3-6d61-4526-bc35-0d24972feaa4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages