For more recent versions of PySide6 you need to set the Direction enum for this example to work. So you need to replace: self.marginsAnim.Forward with: self.marginsAnim.Direction.Forward And: self.marginsAnim.Backward with: self.marginsAnim.Direction.Backward
Thank you! I've been trying to look for a solution online for just this but I couldn't find the exact wordings. Promoting is just the feature I was missing
@@JedHelmers-ub3ue is possible. You need to add a component that is the bass of you r custom component and then right click and in the promote to, there will be your custom component to choose.
For more recent versions of PySide6 you need to set the Direction enum for this example to work.
So you need to replace:
self.marginsAnim.Forward
with:
self.marginsAnim.Direction.Forward
And:
self.marginsAnim.Backward
with:
self.marginsAnim.Direction.Backward
Thanks for the video @MadPonyIteractive. I really found it helpful.
how does it work when it displays the button in top left? you have not set geometry or a layout. i cannot get it to show a button at that stage.
that was very useful and very well explained, thans a lot mate!
Thank you! I've been trying to look for a solution online for just this but I couldn't find the exact wordings. Promoting is just the feature I was missing
Awesome! Do you know much about creating a custom plugin so we can use custom components inside of Qt Designer?
I can't say for sure but I believe you need C++ for that.
@@MadPonyInteractive *shrieks in horror* NOOooooo! That was my fear. Thanks for the speedy reply!
@@JedHelmers-ub3ue is possible. You need to add a component that is the bass of you r custom component and then right click and in the promote to, there will be your custom component to choose.
very good, thank you