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

Moove rows of QListView with keyboard

Scheduled Pinned Locked Moved Unsolved General and Desktop
move problemqabstractlistmomvc
2 Posts 2 Posters 421 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.
  • B Offline
    B Offline
    Babs
    wrote on 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?

    JonBJ 1 Reply Last reply
    0
    • B Babs

      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?

      JonBJ Online
      JonBJ Online
      JonB
      wrote on 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

      • Login

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