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. QML SwipeView does not show other index item.

QML SwipeView does not show other index item.

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

    I made Swipeview for selecting category of contents,
    and When I enter to SwipeView I should show current category Item.

    But there is some strange things,
    If I selecte the last item and re-enter to SwipeView qml, then the before last item is not shown.
    ex. last item index is five, then fourth index item is now shown on left side.

    simulary, when I select first item, then It show second item properly.

    In SwipeView is there a cache buffer for display items like ListView property?
    Please refer to My QML codes

    Item{

    Component.Oncomplete{

    swip.removeItem(3)
    ...
    ... // Remove Items according to condtion of Category

    }

    SwipeView{
    id : swip
    currentIndex : class.lastCategory // refer for C++ class.

    Item{ //first
    }
    Item{ //second
    }
    Item{ //third
    }
    Item{ //fourth
    }
    Item{ //fifth
    }
    }

    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