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. Connecting list view and a button
Forum Updated to NodeBB v4.3 + New Features

Connecting list view and a button

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
4 Posts 3 Posters 903 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.
  • V Offline
    V Offline
    vishu_fcb
    wrote on last edited by
    #1

    I have a list view which displays two objects at a time while the rest is hidden behind the frame . I want to have a down button which whenever clicked displays the hidden objects of the list view one at a time . Can anyone help

    E 1 Reply Last reply
    0
    • V vishu_fcb

      I have a list view which displays two objects at a time while the rest is hidden behind the frame . I want to have a down button which whenever clicked displays the hidden objects of the list view one at a time . Can anyone help

      E Offline
      E Offline
      Eeli K
      wrote on last edited by
      #2

      @vishu_fcb It's difficult to understand what you mean. What is "the frame"? Does the list view size change or should it scroll the items inside it so that they become visible and the old ones are hidden?

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Mammamia
        wrote on last edited by
        #3

        Set thr ListView property snapMode as,

        snapMode: ListView.SnapOneItem
        

        And use the methods,

        ListView.incrementCurrentIndex()
        ListView.decrementCurrentIndex()
        

        On click of buttons.

        Also refer the method,

        ListView.positionViewAtIndex(int index, PositionMode mode)
        
        V 1 Reply Last reply
        1
        • M Mammamia

          Set thr ListView property snapMode as,

          snapMode: ListView.SnapOneItem
          

          And use the methods,

          ListView.incrementCurrentIndex()
          ListView.decrementCurrentIndex()
          

          On click of buttons.

          Also refer the method,

          ListView.positionViewAtIndex(int index, PositionMode mode)
          
          V Offline
          V Offline
          vishu_fcb
          wrote on last edited by
          #4

          @Mammamia Thank you for the help

          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