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. Regarding ListView
Forum Updated to NodeBB v4.3 + New Features

Regarding ListView

Scheduled Pinned Locked Moved QML and Qt Quick
4 Posts 3 Posters 1.1k Views 3 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.
  • Pradeep KumarP Offline
    Pradeep KumarP Offline
    Pradeep Kumar
    wrote on last edited by
    #1

    how to make items in listview scroll up and down with respect to key uppressed, and key downpressed, once it works fine with key down pressed, it wont work for key up pressed, it should work in both key uppressed and key downpressed, please help me out

    M 1 Reply Last reply
    0
    • Pradeep KumarP Pradeep Kumar

      how to make items in listview scroll up and down with respect to key uppressed, and key downpressed, once it works fine with key down pressed, it wont work for key up pressed, it should work in both key uppressed and key downpressed, please help me out

      M Offline
      M Offline
      mcosta
      wrote on last edited by
      #2

      @Pradeep-Kumar.M said:

      once it works fine with key down pressed, it wont work for key up pressed

      Hi,

      could you show your code?

      Once your problem is solved don't forget to:

      • Mark the thread as SOLVED using the Topic Tool menu
      • Vote up the answer(s) that helped you to solve the issue

      You can embed images using (http://imgur.com/) or (http://postimage.org/)

      Pradeep KumarP 1 Reply Last reply
      0
      • M mcosta

        @Pradeep-Kumar.M said:

        once it works fine with key down pressed, it wont work for key up pressed

        Hi,

        could you show your code?

        Pradeep KumarP Offline
        Pradeep KumarP Offline
        Pradeep Kumar
        wrote on last edited by p3c0
        #3
        This post is deleted!
        p3c0P 1 Reply Last reply
        0
        • Pradeep KumarP Pradeep Kumar

          This post is deleted!

          p3c0P Offline
          p3c0P Offline
          p3c0
          Moderators
          wrote on last edited by p3c0
          #4

          @Pradeep-Kumar.M Since you are using a ListView its better to make use of currentIndex. Setting it to some index will automatically scroll ListView to that item.
          Another way would be to use flick method. IMO, setting currentIndex would be a better idea.

          P.S: Always try to post a minimal compilable example that shows the exact problem just in case someone wants to test it first.

          157

          1 Reply Last reply
          1

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved