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: custom transition for one item
Forum Updated to NodeBB v4.3 + New Features

StackView: custom transition for one item

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 373 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.
  • J Offline
    J Offline
    JeroenDierckx
    wrote on last edited by
    #1

    Hi,

    I am using Qt Quick Controls 2, and use a StackView to display different screens.

    For one screen, I want to use a custom transition when pushing and popping, but for the rest I want to use the default transitions. Is that possible?

    I tried creating a child Transition with an id and use a conditional pushEnter:

    pushEnter: showingItem ? itemPushEnterTransition : undefined
    

    but I get the error "Unable to assign [undefined] to QQuickTransition*"

    Maybe it is better to create a custom view with states instead of a StackView? Then I can carefully model the transitions between them.

    Kind regards,
    Jeroen

    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