Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

[Solved] Flipable: how to trigger flipping from outside?



  • Here is my small Flipable screen:

    @Flipable {
    id: flipable
    x: 0
    y: 0

        property bool flipped: false
    
        width: parent.width
        height: parent.height
    
        front: QuiaLoginScreen { id: loginScreen }
        back: QuiaMainView { id: mainView }@
    

    I have custom components for front and back. Question is - how do I trigger flipping from inside of those components? Meaning, when a text is entered in QuiaLoginScreen, how do I initialize flip from there?

    Thanks!



  • Turned out that you can do this directly from the other component just by referring to the name of Flipable component. Awesome.


Log in to reply