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. Block wrapping of elements in path view

Block wrapping of elements in path view

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

    Hello all,
    Im trying to use path view in my qml file. Generally the elements are displayed with carousel effect with key and touch input. However I have tried to block the key input when reaching the first or last element of the path. But when i use with interactive property with true to realize mouse input, im not able to block it.
    Blocked the key input with below simple logic,
    Keys.onUpPressed: {
    if (pathview.currentIndex !== 0)
    pathview.decrementCurrentIndex()
    }
    Keys.onDownPressed: {
    if (currentIndex !== level1Model.count - 1)
    pathview.incrementCurrentIndex()
    }

    Could anybody help to solve my problem to block wrapping with touch input in path view?

    Thanks in advance!

    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