Sliding movement of one widget from other one
I am a beginner in QT. Please advise me how to solve within QT a following task.
I need to make sliding slowly movement of one widget from other one, happened by clicking the button on the first widget.
Initially only the first widget is visible. Then, by clicking the button on the first one, the second widget (of the same size) is appearing as sliding widget from right boundary of the first widget, sliding to right direction till it appears in full.
This both widgets should be represented by a single icon in the Windows tray.
As far as I understand I should use QPropertyAnimation Class. But I do not understand how to implement QPropertyAnimation item into the first widget to provide its control on the second widget.
Hi and welcome to devnet,
If I understand you correctly, these two widgets are located in the same "base" widget on the screen, right ?
I would use a stacked widget and animate the transition from one widget to another
You still first need to move your widget and only then can you put it in your QStackedWidget's layout.