Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. [Solved] Flipable: how to trigger flipping from outside?
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 1 Posters 1.9k Views 1 Watching
  • 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 Offline
    S Offline
    strekazoid
    wrote on last edited by
    #1

    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
    0
    • S Offline
      S Offline
      strekazoid
      wrote on last edited by
      #2

      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
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved