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. ListView scrolling automatically
QtWS25 Last Chance

ListView scrolling automatically

Scheduled Pinned Locked Moved QML and Qt Quick
7 Posts 2 Posters 2.2k 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.
  • J Offline
    J Offline
    joanaguimas
    wrote on last edited by
    #1

    Hi, I have a ListView with a lot of items, and I want to know if it has a way to see the items without scrolling. Like, just appear one item at the time, until the end of the list always in the same space. I can do this with pathview, but the items are overlapping and I can't see them.

    Thanks.

    1 Reply Last reply
    0
    • I Offline
      I Offline
      Iktwo
      wrote on last edited by
      #2

      When you say scrolling automatically do you mean moving the position on the list without scrolling it with touch events or mouse? Are you asking for a circular list? that you can move to the end and it will start again? I believe you need pathview for this, what is the path that you have where the items overlap?

      J 1 Reply Last reply
      0
      • I Iktwo

        When you say scrolling automatically do you mean moving the position on the list without scrolling it with touch events or mouse? Are you asking for a circular list? that you can move to the end and it will start again? I believe you need pathview for this, what is the path that you have where the items overlap?

        J Offline
        J Offline
        joanaguimas
        wrote on last edited by
        #3

        @Iktwo yes, this is what I want, it's basically like the example set shown on this page: http://doc.qt.io/qt-5/qml-qtquick-pathview.html
        but I have a lot of items and they are overlapping, and I can not change it ..

        1 Reply Last reply
        0
        • I Offline
          I Offline
          Iktwo
          wrote on last edited by
          #4

          Have you tried setting pathItemCount?

          J 1 Reply Last reply
          0
          • I Iktwo

            Have you tried setting pathItemCount?

            J Offline
            J Offline
            joanaguimas
            wrote on last edited by
            #5

            @Iktwo Yes I tried. But if I put pathItemCount: 3 , just appear the first 3 items of the list, and if I put 100, they are overlapping..

            1 Reply Last reply
            0
            • I Offline
              I Offline
              Iktwo
              wrote on last edited by
              #6

              And you want to see them all, correct? Could you share the Path that you are using?

              J 1 Reply Last reply
              0
              • I Iktwo

                And you want to see them all, correct? Could you share the Path that you are using?

                J Offline
                J Offline
                joanaguimas
                wrote on last edited by
                #7

                @Iktwo Yes I want to see them all, but one by one..

                I have this:

                                    height: 200
                                    width: parent.width
                                    color: "blue"
                                    anchors.top: parent.top
                                    border.color: "black"
                                    border.width: 1
                                    radius: 5
                                    clip: true
                
                
                
                                    PathView {
                                            anchors.fill: parent
                                            model: latContent
                
                                            pathItemCount: 3
                                            //currentIndex : 2
                                            delegate: Component {
                                                            Text {
                                                                  font.pointSize: 14
                                                                  text: modelData
                                                         }
                                                      }
                
                
                                                    path: Path {
                                                        startX: 120; startY: 100
                                                        PathQuad { x: 120; y: 25; controlX: 260; controlY: 75 }
                                                        PathQuad { x: 120; y: 100; controlX: -20; controlY: 75 }
                                                    }
                                                }
                                            }
                
                latContent is my list from Bluetoothsocket, so basically my list could be 'infinite'.
                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