Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

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

    QML and Qt Quick
    1
    2
    1780
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      strekazoid last edited by

      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!

      1 Reply Last reply Reply Quote 0
      • S
        strekazoid last edited by

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

        1 Reply Last reply Reply Quote 0
        • First post
          Last post