Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-126668

QTableView::keypressEvent() with [move] keys and count() > 1 calls moveCursor() only once

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 6.2.3
    • Widgets: Itemviews
    • None
    • Linux/X11

    Description

      In Mixxx we have a QTableView with a custom keypressEvent() that directs "move keys"¹ to a function² for shifting item rows up/down.

      keypressEvent() receives actual and emulated keypresses, the latter can have count() > 1.

      Regardless the QKeyEvent::count(), moveCursor() is called only once.

      If the same code is built with Qt5, moveCursor() is called N times as desired.

       

      ¹Up, Down, PageUp, PageDown, Home, End
      ²https://github.com/mixxxdj/mixxx/blob/6b62210eed71869fb2dd39c12261328912caf528/src/widget/wtracktableview.cpp#L1087-L1095

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            ronso0 ronso0 0osnor
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes