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. Problems moving rows using arrow keys in QTableView
Forum Updated to NodeBB v4.3 + New Features

Problems moving rows using arrow keys in QTableView

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

    I have a MyDialog that inherits QDialog.
    The model for this dialog is QAbstractListModel.

    There are problems if you follow these steps.

    step1 : Click into a cell in a row+column

    step2 : Ctrl + ↑(Arrow Up Key)
    -> Nothing has changed on the UI.

    step3 : Press ↑(Arrow Up Key)
    -> The row above two spaces is selected

    Is there a way to solve this problem so that it moves only one space?

    Thank you for your time.

    ps. I apologize for the ambiguity of the description @JonB
    I'm not good at English. sorry.

    ODБOïO 1 Reply Last reply
    0
    • K kwanyoung

      I have a MyDialog that inherits QDialog.
      The model for this dialog is QAbstractListModel.

      There are problems if you follow these steps.

      step1 : Click into a cell in a row+column

      step2 : Ctrl + ↑(Arrow Up Key)
      -> Nothing has changed on the UI.

      step3 : Press ↑(Arrow Up Key)
      -> The row above two spaces is selected

      Is there a way to solve this problem so that it moves only one space?

      Thank you for your time.

      ps. I apologize for the ambiguity of the description @JonB
      I'm not good at English. sorry.

      ODБOïO Offline
      ODБOïO Offline
      ODБOï
      wrote on last edited by
      #2

      is this a double post or a bug on the forum ?
      https://forum.qt.io/topic/109189/problems-moving-columns-using-arrow-keys-in-qtableview

      JonBJ 1 Reply Last reply
      0
      • ODБOïO ODБOï

        is this a double post or a bug on the forum ?
        https://forum.qt.io/topic/109189/problems-moving-columns-using-arrow-keys-in-qtableview

        JonBJ Offline
        JonBJ Offline
        JonB
        wrote on last edited by JonB
        #3

        @LeLev
        Yep. One of those two!

        @kwanyoung
        It's best to stay with your original post (unless you did and it's a forum bug, I have reported this behaviour once). I can see you've changed a touch from my questions there, but you haven't answered all of them, especially the last one. You can use the vertical ... button at the bottom-right of your posts to Edit them if you need to.

        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