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. How to center items in positioners

How to center items in positioners

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

    I want to center items inside positioners. At the same time I want to use animations also while adding and removing them.

    If I use Row type, I have to center row itself to achieve what I want. But adding/removing items change width of row and this disturbs my animation. Example:

    Row {
      id: row
      anchors.horizontalCenter: parent.horizontalCenter
      height: 240
      // Dynamically created items here
      move: Transition {} // Transitions here
    }
    

    If I want to use RowLayout, there is an attached property called Layout.alignment which I want. But there is no transitions in these layouts.

    So, should I implement it myself or is there any way to make it happen.

    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