Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Animating layout reorder
Qt 6.11 is out! See what's new in the release blog

Animating layout reorder

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 449 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.
  • B Offline
    B Offline
    Borzh
    wrote on last edited by
    #1

    I have a vertical layout with 2 items, separator between them, and a button.
    When I press a button I want to slide items so they interchange their positions: first item is placed on coordinates of second and the second on coordinates of first.
    Without animation, I can just remove the first and the separator from layout and then add separator and the first item. But I need to do this with sliding animation (maybe using QPropertyAnimation on "geometry"), how to achieve this?

    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