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

rewrite keyPressEvent for QTableWidget give QKeyEvent key() == 16777217 any of arrow keys pressed.

    XMLWordPrintable

Details

    • Linux/X11

    Description

      Rewrite keyPressEvent for QTableWidget give QKeyEvent key() == 16777217 any of arrow keys pressed in case setCellWidget used.

      QTableWidget::setCellWidget(QCheckBox*);

      QTableWidget::keyPressEvent(QKeyEvent *ev)

      { in case Qt::Key_DOWN or Qt::Key_LEFT pressed ev->key() ... will ecuals to 16777217 not 16777237 }

      Создав QTableWidget и вставив Widget с помощью setCellWidget, QTableWidget::keyPressEvent override QKeyEvent::key() равно 16777217 в случае если нажаты кнопки вниз или вправо.

      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
            falloutst Mark Staver
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes