Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Image slide show in qml
Forum Updated to NodeBB v4.3 + New Features

Image slide show in qml

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 3 Posters 3.0k 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.
  • BharathiB Offline
    BharathiB Offline
    Bharathi
    wrote on last edited by
    #1

    How to create slide show in qml on routine process.I have tried it with listmodel,component &list view .It shows like slide show but I want to repeat the process??

    1 Reply Last reply
    0
    • M Offline
      M Offline
      MajidKamali
      wrote on last edited by
      #2

      Do you mean repeating from start of slide show?
      If so, use PathView instead of ListView

      1 Reply Last reply
      1
      • BharathiB Offline
        BharathiB Offline
        Bharathi
        wrote on last edited by
        #3

        @MajidKamali Thanks for reply.
        I tried pathview in qt example "http://doc.qt.io/qt-5/qtquick-views-pathview-pathview-example-qml.html" but I need it without using mouse event.Automatically it will trigger like slide show.I tried it with timer but it didn't work for me.

        1 Reply Last reply
        0
        • dheerendraD Offline
          dheerendraD Offline
          dheerendra
          Qt Champions 2022
          wrote on last edited by
          #4

          In the path view example above just add the following timer code. This should work. Hope this is what you require.
          Timer {
          id : tim
          interval: 2000
          running: true
          repeat: true
          onTriggered: {
          view.currentIndex = idx++;
          }
          }

          Dheerendra
          @Community Service
          Certified Qt Specialist
          http://www.pthinks.com

          1 Reply Last reply
          3
          • BharathiB Offline
            BharathiB Offline
            Bharathi
            wrote on last edited by
            #5

            @dheerendra It works thanks for the reply.I have another doubt.Is there possible to only view the current item in the list model.

            M 1 Reply Last reply
            1
            • BharathiB Bharathi

              @dheerendra It works thanks for the reply.I have another doubt.Is there possible to only view the current item in the list model.

              M Offline
              M Offline
              MajidKamali
              wrote on last edited by
              #6

              @Bharathi set width of PathView items to window width and then use snapMode to PathView.SnapOneItem
              http://doc.qt.io/qt-5/qml-qtquick-pathview.html#snapMode-prop

              1 Reply Last reply
              1
              • BharathiB Offline
                BharathiB Offline
                Bharathi
                wrote on last edited by
                #7

                @MajidKamali
                I already try snapmode but it shows all images

                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