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. StackView doesn't handle transition interruptions correctly
Forum Updated to NodeBB v4.3 + New Features

StackView doesn't handle transition interruptions correctly

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 149 Views
  • 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.
  • A Offline
    A Offline
    Andreas Schacherbauer
    wrote on last edited by
    #1

    Hi all,
    We're using a Qml StackView to handle transitions between views. The quick items (views) are created and managed in C++.
    When we switch from viewA to viewB (Transition1) and trigger a transition from viewB to viewA (Transition2) before Transition1 is finished, viewA is not rendered anymore. The parent (Qml) is null and the visible property is false. So it makes sense that viewA is not rendered anymore, but we can't manage to set properties in a way so that it's rendered again.
    We tried to iterate over all animations from Transition1 and call there complete function before we start Transition2 and this seems to work for as long as the animations are running, but once Transition2 finishes, the stack view seems to restore the view state as how it would have been if Transition1 would have finished.

    Does anyone already had the situation where a view transition from the Qml StackView needed to be interrupted before finished?

    Thanks,
    Andreas

    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