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. Moove rows of QListView with keyboard
Forum Updated to NodeBB v4.3 + New Features

Moove rows of QListView with keyboard

Scheduled Pinned Locked Moved Unsolved General and Desktop
move problemqabstractlistmomvc
2 Posts 2 Posters 462 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.
  • B Offline
    B Offline
    Babs
    wrote on 21 Jun 2021, 10:15 last edited by
    #1

    Hello, I'm working on a project with a list of items. I implemented a model based on QAbstractModel and a custom delegate.
    My problem is that i don't know how to moove an item using keyboard and not drag and drop?
    Can anyone help?

    J 1 Reply Last reply 21 Jun 2021, 13:47
    0
    • B Babs
      21 Jun 2021, 10:15

      Hello, I'm working on a project with a list of items. I implemented a model based on QAbstractModel and a custom delegate.
      My problem is that i don't know how to moove an item using keyboard and not drag and drop?
      Can anyone help?

      J Offline
      J Offline
      JonB
      wrote on 21 Jun 2021, 13:47 last edited by
      #2

      @Babs
      I presume that if you don't use d&d it's just a question of intercepting the keypresses in the list view and acting as desired on them, e.g. move an item at one index in the model to another index.

      1 Reply Last reply
      2

      1/2

      21 Jun 2021, 10:15

      • Login

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