Have a go hero – Adding an animation of the item's position

You can make the calculator's transition even more appealing if you make the text field fly away off screen while fading out. Just use the form editor to change the text field's position in the single_argument state, and then attach another PropertyAnimation to the Transition object. You can play with different easing types to see which looks better for this purpose.

Get Game Programming using Qt 5 Beginner's Guide - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.